diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2021-12-08 03:38:16 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2021-12-08 03:38:16 +0300 |
commit | dd775b7a27aabc4c562b01a1480f147fb6d4a88b (patch) | |
tree | 77ce63a7c7169bf273ea2caddf95d1c6c7f3adc4 /internal/auth/auth.go | |
parent | 8ee29a24422e012c5ed9f6ada9d55f4e7c13673d (diff) | |
parent | 0ab62643e5b61daf82ecf5a2c1ed196796059514 (diff) |
Merge branch 'remove-unused-ctx' into 'master'
refactor: enable unparam in .gitlabci.yml
See merge request gitlab-org/gitlab-pages!631
Diffstat (limited to 'internal/auth/auth.go')
-rw-r--r-- | internal/auth/auth.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/auth/auth.go b/internal/auth/auth.go index b5865836..acef051b 100644 --- a/internal/auth/auth.go +++ b/internal/auth/auth.go @@ -289,7 +289,7 @@ func (a *Auth) handleProxyingAuth(session *sessions.Session, w http.ResponseWrit // If auth request callback should be proxied to custom domain // redirect to originating domain set in the cookie as proxy_auth_domain - if shouldProxyCallbackToCustomDomain(r, session) { + if shouldProxyCallbackToCustomDomain(session) { // Get domain started auth process proxyDomain := session.Values["proxy_auth_domain"].(string) @@ -354,7 +354,7 @@ func shouldProxyAuthToGitlab(r *http.Request) bool { return r.URL.Query().Get("domain") != "" && r.URL.Query().Get("state") != "" } -func shouldProxyCallbackToCustomDomain(r *http.Request, session *sessions.Session) bool { +func shouldProxyCallbackToCustomDomain(session *sessions.Session) bool { return session.Values["proxy_auth_domain"] != nil } |