mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #8566] [MERGED] Add functionality to retrive picture for microsoft oauth #22249
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/8566
Author: @rragundez
Created: 1/15/2025
Status: ✅ Merged
Merged: 1/15/2025
Merged by: @tjbck
Base:
dev← Head:ms-auth-picture📝 Commits (2)
c8be0b2Add functionality to retrive picture for microsoft oauth32f121fAdd functionality to retrive picture for microsoft oauth📊 Changes
2 files changed (+4 additions, -1 deletions)
View changed files
📝
backend/open_webui/config.py(+1 -0)📝
backend/open_webui/utils/oauth.py(+3 -1)📄 Description
Microsoft oauth does not send the
pictureclaim like other providers do. This PR enables the retrieval of the profile picture in those cases.Is quite simple TBH, there is a standard given by the Microsfot Graph API to retrieve it:
It is not a breaking change as the other providers still behave exactly in the same way.
I have tested with my company credentials and it works.
Solves: #8425
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.