mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-29 05:25:30 -05:00
fix: Handle missing OIDC groups claim (#6054)
This commit is contained in:
@@ -138,7 +138,7 @@ async def oauth_callback(request: Request, response: Response, session: Session
|
||||
try:
|
||||
logger.debug("[OIDC] Claims not present in the ID token, pulling user info")
|
||||
userinfo = await client.userinfo(token=token)
|
||||
auth_provider = OpenIDProvider(session, userinfo)
|
||||
auth_provider = OpenIDProvider(session, userinfo, use_default_groups=True)
|
||||
auth = auth_provider.authenticate()
|
||||
except MissingClaimException:
|
||||
auth = None
|
||||
|
||||
Reference in New Issue
Block a user