OneDrive/SharePoint OAuth invalid audience error

后端 未结 1 541
面向向阳花
面向向阳花 2021-01-20 03:17

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

1条回答
  •  有刺的猬
    2021-01-20 03:52

    aud = Audience of the token. When the token is issued to a client application, the audience is the client_id of the client. You might want to try using the Discovery Service API to check your service endpoints (https://msdn.microsoft.com/en-us/office/office365/howto/discover-service-endpoints) . There error shows that the audience URI is invalid so the service might not be running on the URL that you are making the call to (i.e. https://{tenant}-my.sharepoint.com/_api/v1.0/me/). Following the link above should help you isolate the problem. I hope that helps.

    0 讨论(0)
提交回复
热议问题