Skip to content

Commit b8f3abd

Browse files
authored
fix: email claim constant
1 parent 8697f72 commit b8f3abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/open_webui/utils/oauth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ async def handle_callback(self, request, provider, response):
234234
log.warning(f"OAuth callback error: {e}")
235235
raise HTTPException(400, detail=ERROR_MESSAGES.INVALID_CRED)
236236
user_data: UserInfo = token.get("userinfo")
237-
if not user_data or "email" not in user_data:
237+
if not user_data or auth_manager_config.OAUTH_EMAIL_CLAIM not in user_data:
238238
user_data: UserInfo = await client.userinfo(token=token)
239239
if not user_data:
240240
log.warning(f"OAuth callback failed, user data is missing: {token}")

0 commit comments

Comments
 (0)