skip to Main Content

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


  1. ‘AADSTS9002331: Application … is configured for use by Microsoft Account users only

    You need to select either the Second or Third option

    enter image description here

    You can also see same issue in MS Q& A by AngangGuo

    References taken from :

    Register an application – Microsoft Advertising API

    Login or Signup to reply.
  2. Solution:

    Set ‘tenantId’ to consumers.

    Code:

    tenantId = consumers
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search