mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2026-10-18 13:18:26 +02:00
fix: improve logging when session refresh token is missing (#3327)
* Improve logging for session refresh token status Signed-off-by: Yosri Barhoumi <med.yosri.brh@gmail.com> * doc: add changelog entry for #3327 Signed-off-by: Jan Larwig <jan@larwig.com> * test: fix existing test cases for new behaviour Signed-off-by: Jan Larwig <jan@larwig.com> --------- Signed-off-by: Yosri Barhoumi <med.yosri.brh@gmail.com> Signed-off-by: Jan Larwig <jan@larwig.com> Co-authored-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
co-authored by
Jan Larwig
parent
5ca3012652
commit
e2682f7595
@@ -222,6 +222,7 @@ func (s *storedSessionLoader) refreshSession(rw http.ResponseWriter, req *http.R
|
||||
|
||||
// Session not refreshed, nothing to persist.
|
||||
if !refreshed {
|
||||
logger.Printf("Session not refreshed - User: %s; no refresh token available or provider returned false", session.User)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user