xima-media / xima-oauth2-extended

Additional OAuth2 provider + on-the-fly user creation
https://www.xima.de/
3 stars 3 forks source link

Download Microsoft user image #1

Closed maikschneider closed 1 year ago

maikschneider commented 1 year ago

In the response of a microsoft authentication request, the profile image is send as endpoint url, e.g. https://graph.microsoft.com/v1.0/me/photo/$value. This API could be accessed with the token of the current request.

There is already an example implementation in MicrosoftResourceResolver which needs further testing + download and persistence with FAL.

See Microsoft documentation for more information of the endpoint.