Closed guhuajun closed 2 years ago
Close for finding the solutions by myself.
Hi Greg,
The right scope for China is
https://microsoftgraph.chinacloudapi.cn/.default
MSAL is a token acquisition library. MSAL itself does not have a say on what scope should be used. Scopes are defined by the services that you are going to access.
That being said, if you can provide the doc that you got that correct endpoint from, we are willing to convert this into a Q&A to help others.
Greetings,
I have AADSTS1002012 error when working with Office 365 China. After digging the documentation, it's very difficult to find the right replacement for 'https://graph.microsoft.com/.default'.
But luckily, I managed to download the right code sample from Azure Portal, please help to update the documentation for guiding people to the right place. The right scope for China is https://microsoftgraph.chinacloudapi.cn/.default. https://docs.microsoft.com/en-us/azure/active-directory/develop/scenario-daemon-acquire-token?tabs=dotnet#acquiretokenforclient-api
(I marked my app name via Web Developer Tools, no more guessing)![图片](https://user-images.githubusercontent.com/14121694/160529010-389510d9-e069-4a09-8b99-62d966983a8b.png)
Please feel free to close this issue.
Bonus: Based on the update date, it looks like this is the new endpoints list. https://docs.microsoft.com/en-us/microsoft-365/enterprise/urls-and-ip-address-ranges-21vianet?view=o365-worldwide
Have a nice day. Greg