So I registered an app for Personal account only. Then, I generated a sample blazor project with Visual Studio and set up the redirect url https://localhost:7213/signin-oidc
. When I start the projects, it correctly redirects me to the /signin-oidc
endpoint and following exception page is presented
OpenIdConnectProtocolException: Message contains error: ‘invalid_request’, error_description: ‘AADSTS9002331: Application … is configured for use by Microsoft Account users only. Please use the /consumers endpoint to serve this request.
Can’t find anything in the docs about the consumers endpoint.
Tried changing /singin-oidc
to /consumers
but it didn’t help.
Does anyone have a solution for this?
Thanks
2
Answers
You need to select either the Second or Third option
You can also see same issue in MS Q& A by AngangGuo
References taken from :
Register an application – Microsoft Advertising API
Solution:
Set ‘tenantId’ to consumers.
Code: