mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-01 02:12:50 +02:00
internal/sessions: error if session too large
This commit is contained in:
parent
10a1d2fd7e
commit
63043dec9c
4 changed files with 53 additions and 3 deletions
|
@ -278,7 +278,7 @@ func (a *Authenticate) getOAuthCallback(w http.ResponseWriter, r *http.Request)
|
|||
|
||||
if err := a.sessionStore.SaveSession(w, r, session); err != nil {
|
||||
log.Error().Err(err).Msg("authenticate: failed saving new session")
|
||||
return "", httputil.Error{Code: http.StatusInternalServerError, Message: "Internal Error"}
|
||||
return "", httputil.Error{Code: http.StatusInternalServerError, Message: err.Error()}
|
||||
}
|
||||
|
||||
return redirect, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue