mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-16 04:29:15 +00:00
R77: bearer allowedUsers gate, session inUse CAS
This commit is contained in:
+1
-1
@@ -444,7 +444,7 @@ func (t *TraefikOidc) refreshToken(rw http.ResponseWriter, req *http.Request, se
|
||||
|
||||
t.logger.Debug("Attempting to refresh token (mutex acquired)")
|
||||
|
||||
if !session.inUse {
|
||||
if !session.inUse.Load() {
|
||||
t.logger.Debug("refreshToken aborted: Session no longer in use")
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user