-
|
I'm trying to use https://github.com/microsoftgraph/msgraph-sdk-python to make calls to the Graph API. How do I use the access_token I receive after the user logins/consents? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Looks like the Microsoft Graph SDK is tailored to accept a credential defined in Azure Identity, rather than a raw access token. It is probably feasible to implement a thin wrapper credential to feed the access token into Microsoft Graph SDK. UPDATE: It is feasible. |
Beta Was this translation helpful? Give feedback.
-
|
Ok, I got it to work, this was helpful microsoftgraph/msgraph-sdk-python#501 To be honest, somewhat surprised this is not a common use case. 🤷 Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Looks like the Microsoft Graph SDK is tailored to accept a credential defined in Azure Identity, rather than a raw access token. It is probably feasible to implement a thin wrapper credential to feed the access token into Microsoft Graph SDK. UPDATE: It is feasible.