Microsoft Graph API BadRequest Current authenticated context is not valid
问题 I am trying to develop a simple background app to connect to my onedrive account (work) and regularly download some files. I followed this tutorial https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-v2-protocols-oauth-client-creds I have registered the app here https://apps.dev.microsoft.com/portal/register-app I have written down the client_id and client_secret To get an access token I make a POST request to https://login.microsoftonline.com/common/oauth2/v2.0