You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OIDC: discovery metadata and handler maps are accessed without full locking #284
Found while fixing #273 (PR #283). OIDCAuthHandler::cached_metadata_ is read and written without a lock, and the oidc_handlers maps of the REST and MCP handlers are only partly protected, so concurrent first requests (before discovery is cached) race. Fix direction: guard the metadata with a mutex or a once-flag for the first fetch, protect the handler maps consistently, and add a concurrent-first-request test. Related: #281 (unbounded JWKS refetch on an unknown kid).
Activity