microsoft / o365-moodle

Office 365 and Azure Active Directory plugins for Moodle
GNU General Public License v3.0
178 stars 134 forks source link

Feature request: allow for profile photo sync on user login using user's token rather than application token #2581

Open farlo18 opened 1 month ago

farlo18 commented 1 month ago

If I use OAuth2 with Microsoft login it will pull the user’s picture without an issue. If using the OIDC plugin the pictures don’t get pulled. I am unable to use o365 Microsoft Plugin and use “Provide Admin Consent”. Is there another way for this plugin to get the user profile pictures? Thank you. I here the latest version of Moodle and the plugin installed.

weilai-irl commented 1 month ago

Hi @farlo18

The auth_oidc plugin uses a different approach as auth_oauth2 plugin to fetch user profile photos, so the short answer to your question is no, it's not possible using the current implementation.

I can convert this issue to a feature request to allow for profile photo sync without admin consent and add it to the queue of feature requests. It may take some time to be processed though.

Regards, Lai

farlo18 commented 1 month ago

That would be amazing if it were to happen. Thank you