We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c83604c commit c12efd0Copy full SHA for c12efd0
auth/client.go
@@ -85,6 +85,8 @@ func (t *HTTPTransport) RoundTrip(req *http.Request) (*http.Response, error) {
85
defer t.mu.Unlock()
86
// If we don't have a token source, get one by following the OAuth flow.
87
// (We may have obtained one while t.mu was not held above.)
88
+ // TODO: We hold the lock for the entire OAuth flow. This could be a long
89
+ // time. Is there a better way?
90
if _, ok := t.opts.Base.(*oauth2.Transport); !ok {
91
authHeaders := resp.Header[http.CanonicalHeaderKey("WWW-Authenticate")]
92
ts, err := t.handler(req.Context(), OAuthHandlerArgs{
0 commit comments