oidc: Display error if applicable

This commit is contained in:
TwiN committed 2022-01-02 21:14:01 -05:00
1 parent 425c1d3674
commit 56048725e4
5 files changed
+11 -4

No files matched your search

+1 -1
View File
@@ -124,7 +124,7 @@ func (c *OIDCConfig) callbackHandler(w http.ResponseWriter, r *http.Request) {
}
}
log.Printf("[security][callbackHandler] Subject %s is not in the list of allowed subjects", idToken.Subject)
http.Redirect(w, r, "/login?error=access_denied", http.StatusFound)
http.Redirect(w, r, "/?error=access_denied", http.StatusFound)
}
func (c *OIDCConfig) setSessionCookie(w http.ResponseWriter, idToken *oidc.IDToken) {