From 1e65a63c83809493f26312d2a34e9d27be95e4b0 Mon Sep 17 00:00:00 2001 From: Kyle Robbertze Date: Wed, 11 Mar 2020 16:00:10 +0200 Subject: [PATCH] fix incorrect references --- oauth.go | 6 +++--- oauth_gitlab.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/oauth.go b/oauth.go index ab08e49..76588e8 100644 --- a/oauth.go +++ b/oauth.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), diff --git a/oauth_gitlab.go b/oauth_gitlab.go index 6b97a24..9eb8c0b 100644 --- a/oauth_gitlab.go +++ b/oauth_gitlab.go @@ -27,7 +27,7 @@ const ( ) func (c gitlabOauthClient) GetProvider() string { - return "Gitlab" + return "gitlab" } func (c gitlabOauthClient) GetClientID() string {