mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-12 04:04:26 +00:00
Resolve invalid state parameter issue.
This commit is contained in:
+1
-1
@@ -143,7 +143,7 @@ func (t *TraefikOidc) handleCallback(rw http.ResponseWriter, req *http.Request)
|
||||
sessionState, ok := session.Values["csrf"].(string)
|
||||
if !ok || callbackState != sessionState {
|
||||
handleError(rw, "Invalid state parameter", http.StatusBadRequest, t.logger)
|
||||
return false, ""
|
||||
return false, "invalid-state-param"
|
||||
}
|
||||
|
||||
code := req.URL.Query().Get("code")
|
||||
|
||||
Reference in New Issue
Block a user