I am trying to connect with office 365 without going through Azure, so I was able to get the access token by calling the following URL

**resource** 00000003-0000-0ff1-ce00-000000000000/myDomain-my.sharepoint.com@myDomain.onmicrosoft.com
**client_id** ab15d15a-9bf6-4f52-b67a-6528398d2ca9@myDomain.onmicrosoft.com
**client_secret** xxxxxxx
**code** xxxxxx
**grant_type** authorization_code

But the problem is when I try to call the Office 365 API like this:


I got the following error:

Invalid audience Uri '00000003-0000-0ff1-ce00-000000000000/myDomain.sharepoint.com@132436d6-76fe-4a35-95b5-c2a643463cb4'.

Any hints of what is happening?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.