[PR #8566] [MERGED] Add functionality to retrive picture for microsoft oauth #45297

Closed
opened 2026-04-29 19:38:03 -05:00 by GiteaMirror · 0 comments
Owner

📋 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: devHead: ms-auth-picture


📝 Commits (2)

  • c8be0b2 Add functionality to retrive picture for microsoft oauth
  • 32f121f Add 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 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:

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.

## 📋 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>
GiteaMirror added the pull-request label 2026-04-29 19:38:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#45297