OneDrive/SharePoint OAuth invalid audience error
问题 My goal is to write some code to enable an Office 365 user to access files in OneDrive for Business via REST API. I have registered an application in Azure AD (Web App/multi tenant) and added permissions to access SharePoint online. I want to use the "delegated user identity with OAuth" scenario where my app accesses OneDrive for Business via REST APIs using user impersonation. The permissions in the app's manifest like this: "oauth2Permissions": [ { "adminConsentDescription": "Allow the