Microsoft oauth does not send the picture claim 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:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/8566
**Author:** [@rragundez](https://github.com/rragundez)
**Created:** 1/15/2025
**Status:** ✅ Merged
**Merged:** 1/15/2025
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `ms-auth-picture`
---
### 📝 Commits (2)
- [`c8be0b2`](https://github.com/open-webui/open-webui/commit/c8be0b20ccdd2784fcb300a0f217961a9327fbdf) Add functionality to retrive picture for microsoft oauth
- [`32f121f`](https://github.com/open-webui/open-webui/commit/32f121f0197f4939f6fd4f99576fc403cccb0d09) Add functionality to retrive picture for microsoft oauth
### 📊 Changes
**2 files changed** (+4 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/open_webui/config.py` (+1 -0)
📝 `backend/open_webui/utils/oauth.py` (+3 -1)
</details>
### 📄 Description
Microsoft oauth does not send the `picture` claim 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:
- https://learn.microsoft.com/en-us/graph/api/profilephoto-get?view=graph-rest-1.0&tabs=http#request
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
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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.