File tree Expand file tree Collapse file tree 2 files changed +0
-151
lines changed Expand file tree Collapse file tree 2 files changed +0
-151
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -213,8 +213,6 @@ type RequestConfig struct {
213213 HTTPClient * http.Client
214214 Middlewares []middleware
215215 AccessToken string
216- // OAuth2State holds the OAuth2 provider configuration and cached token information
217- OAuth2State * OAuth2State
218216 // If ResponseBodyInto not nil, then we will attempt to deserialize into
219217 // ResponseBodyInto. If Destination is a []byte, then it will return the body as
220218 // is.
@@ -412,15 +410,6 @@ func (cfg *RequestConfig) Execute() (err error) {
412410 }
413411 }
414412
415- if cfg .OAuth2State != nil && cfg .Request .Header .Get ("Authorization" ) == "" {
416- token , err := cfg .OAuth2State .GetToken (cfg )
417- if err != nil {
418- return err
419- }
420-
421- cfg .Request .Header .Set ("Authorization" , fmt .Sprintf ("Bearer %s" , token ))
422- }
423-
424413 handler := cfg .HTTPClient .Do
425414 if cfg .CustomHTTPDoer != nil {
426415 handler = cfg .CustomHTTPDoer .Do
You can’t perform that action at this time.
0 commit comments