question

arunsingh-4292 avatar image
1 Vote"
arunsingh-4292 asked arunsingh-4292 answered

Blazor server app with Azure AD B2C authentication

Hi while trying to launch my app with Azure AD enabled i get the following error:

Error.
An error occurred while processing your request.
Request ID: 00-fca99c8b40b49d4798e8f0ce2e129ea9-3b940a54171b6045-00

Development Mode
Swapping to Development environment will display more detailed information about the error that occurred.

Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application.

There is no issue with Dev being turned on as it is on.
And also if try to use any other authentication or no authentication the build is successfull but not with Azure B2C.
What can be the reason?

Thanks for help in advance!

azure-ad-b2cdotnet-aspnet-core-blazor
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

arunsingh-4292 avatar image
2 Votes"
arunsingh-4292 answered

I found the issue In Azure AD i need to select
issue token option for "Select the tokens you would like to be issued by the authorization endpoint:".

I had selected the other one.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.