mirror of
https://github.com/open-webui/open-webui
synced 2025-02-07 13:34:55 +00:00
Add functionality to retrive picture for microsoft oauth
This commit is contained in:
parent
4269df041f
commit
c8be0b20cc
@ -255,7 +255,9 @@ class OAuthManager:
|
|||||||
raise HTTPException(400, detail=ERROR_MESSAGES.EMAIL_TAKEN)
|
raise HTTPException(400, detail=ERROR_MESSAGES.EMAIL_TAKEN)
|
||||||
|
|
||||||
picture_claim = auth_manager_config.OAUTH_PICTURE_CLAIM
|
picture_claim = auth_manager_config.OAUTH_PICTURE_CLAIM
|
||||||
picture_url = user_data.get(picture_claim, "")
|
picture_url = user_data.get(
|
||||||
|
picture_claim, OAUTH_PROVIDERS[provider].get("picture_url", "")
|
||||||
|
)
|
||||||
if picture_url:
|
if picture_url:
|
||||||
# Download the profile image into a base64 string
|
# Download the profile image into a base64 string
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user