You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should use https://graph.microsoft.com/v1.0/me instead.
Since the scope required (User.Read) is different from the ones in OAUTH_SCOPE, I suggest the following approach:
Override _get_user_info in MicrosoftAuthHandler, so it calls the parent method with a copy of session_dict where session_dict["access_token"] has been replaced with an access token with the right scope.
That access token (with User.Read scope) has to be requested just before calling the parent method, using the AuthAlligator client.
The text was updated successfully, but these errors were encountered:
sync-engine/inbox/auth/microsoft.py
Line 37 in e19ff46
Used in
_get_user_info
.https://graph.microsoft.com/v1.0/me
instead.User.Read
) is different from the ones inOAUTH_SCOPE
, I suggest the following approach:_get_user_info
inMicrosoftAuthHandler
, so it calls the parent method with a copy ofsession_dict
wheresession_dict["access_token"]
has been replaced with an access token with the right scope.User.Read
scope) has to be requested just before calling the parent method, using the AuthAlligator client.The text was updated successfully, but these errors were encountered: