mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-16 04:29:15 +00:00
fix(auth): harden OIDC flow, token validation, session, and bearer handling
- replay entry covers exp + clock-skew window; callback GET-only (RFC 6749) - callback rate-limit returns 429 + Retry-After; panic-recovery sets no-store - cross-chunk integrity for chunked tokens; bounded chunked-token read scan - HTTPError classification so 5xx/429 token-endpoint responses retry - redaction of token/code/state in logs; per-source external auth gate
This commit is contained in:
+4
-1
@@ -38,7 +38,10 @@ func (sf *ScopeFilter) FilterSupportedScopes(requestedScopes, supportedScopes []
|
||||
// If no supported scopes declared, return all requested (backward compatibility)
|
||||
if len(supportedScopes) == 0 {
|
||||
sf.logger.Debugf("ScopeFilter: Provider %s has no scopes_supported in discovery doc, using all requested scopes", providerURL)
|
||||
return requestedScopes
|
||||
// Return a copy so the caller can append without aliasing the
|
||||
// slice it passed in (which would let the two views of the same
|
||||
// backing array cross-contaminate each other).
|
||||
return append([]string(nil), requestedScopes...)
|
||||
}
|
||||
|
||||
// Build lookup map for efficient checking
|
||||
|
||||
Reference in New Issue
Block a user