|
|
@ -179,12 +179,13 @@ func configureGitlabOauth(parentHandler *Handler, r *mux.Router, app *App) { |
|
|
|
callbackLocation = app.Config().GitlabOauth.CallbackProxy |
|
|
|
callbackLocation = app.Config().GitlabOauth.CallbackProxy |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
address := config.OrDefaultString(app.Config().GitlabOauth.Host, gitlabHost) |
|
|
|
oauthClient := gitlabOauthClient{ |
|
|
|
oauthClient := gitlabOauthClient{ |
|
|
|
ClientID: app.Config().GitlabOauth.ClientID, |
|
|
|
ClientID: app.Config().GitlabOauth.ClientID, |
|
|
|
ClientSecret: app.Config().GitlabOauth.ClientSecret, |
|
|
|
ClientSecret: app.Config().GitlabOauth.ClientSecret, |
|
|
|
ExchangeLocation: config.OrDefaultString(app.Config().GitlabOauth.TokenLocation, gitlabExchangeLocation), |
|
|
|
ExchangeLocation: address + "/oauth/token", |
|
|
|
InspectLocation: config.OrDefaultString(app.Config().GitlabOauth.InspectLocation, gitlabIdentityLocation), |
|
|
|
InspectLocation: address + "/api/v4/user", |
|
|
|
AuthLocation: config.OrDefaultString(app.Config().GitlabOauth.AuthLocation, gitlabAuthLocation), |
|
|
|
AuthLocation: address + "/oauth/authorize", |
|
|
|
HttpClient: config.DefaultHTTPClient(), |
|
|
|
HttpClient: config.DefaultHTTPClient(), |
|
|
|
CallbackLocation: callbackLocation, |
|
|
|
CallbackLocation: callbackLocation, |
|
|
|
} |
|
|
|
} |
|
|
|