Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 405a260

Browse files
echoesactiiipascoual
authored andcommitted
Fix endpoint URI generation
Signed-off-by: prichier <[email protected]>
1 parent 92d822b commit 405a260

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

oauth.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ func configureGenericOauth(parentHandler *Handler, r *mux.Router, app *App) {
252252
oauthClient := genericOauthClient{
253253
ClientID: app.Config().GenericOauth.ClientID,
254254
ClientSecret: app.Config().GenericOauth.ClientSecret,
255-
ExchangeLocation: app.Config().GenericOauth.TokenEndpoint,
256-
InspectLocation: app.Config().GenericOauth.InspectEndpoint,
257-
AuthLocation: app.Config().GenericOauth.AuthEndpoint,
255+
ExchangeLocation: app.Config().GenericOauth.Host + app.Config().GenericOauth.TokenEndpoint,
256+
InspectLocation: app.Config().GenericOauth.Host + app.Config().GenericOauth.InspectEndpoint,
257+
AuthLocation: app.Config().GenericOauth.Host + app.Config().GenericOauth.AuthEndpoint,
258258
HttpClient: config.DefaultHTTPClient(),
259259
CallbackLocation: callbackLocation,
260260
}

0 commit comments

Comments
 (0)