fix incorrect references

oauth-gitlab
Kyle Robbertze 5 years ago
parent de5b3def5b
commit 1e65a63c83
  1. 6
      oauth.go
  2. 2
      oauth_gitlab.go

@ -149,7 +149,7 @@ func configureWriteAsOauth(parentHandler *Handler, r *mux.Router, app *App) {
callbackLocation: app.Config().App.Host + "/oauth/callback/write.as",
httpClient: config.DefaultHTTPClient(),
}
callbackLocation = app.Config().SlackOauth.CallbackProxy
callbackLocation = app.Config().WriteAsOauth.CallbackProxy
}
oauthClient := writeAsOauthClient{
@ -176,10 +176,10 @@ func configureGitlabOauth(parentHandler *Handler, r *mux.Router, app *App) {
callbackLocation: app.Config().App.Host + "/oauth/callback/gitlab",
httpClient: config.DefaultHTTPClient(),
}
callbackLocation = app.Config().SlackOauth.CallbackProxy
callbackLocation = app.Config().GitlabOauth.CallbackProxy
}
oauthClient := writeAsOauthClient{
oauthClient := gitlabOauthClient{
ClientID: app.Config().GitlabOauth.ClientID,
ClientSecret: app.Config().GitlabOauth.ClientSecret,
ExchangeLocation: config.OrDefaultString(app.Config().GitlabOauth.TokenLocation, writeAsExchangeLocation),

@ -27,7 +27,7 @@ const (
)
func (c gitlabOauthClient) GetProvider() string {
return "Gitlab"
return "gitlab"
}
func (c gitlabOauthClient) GetClientID() string {

Loading…
Cancel
Save