question

Arne-8647 avatar image
0 Votes"
Arne-8647 asked IzzyHewage-9543 commented

Azure AD B2C signin gives server_error

Some time ago, using the Azure Portal, we created Azure AD B2C tenants and got implicit grant flow working for the B2C_1 signin flow with MSAL Angular.

Today, using the Azure Portal, we created a new tenant with the same options as previously, but signin fails: The following request:

https://[REDACTED].b2clogin.com/[REDACTED].onmicrosoft.com/b2c_1_signin/oauth2/v2.0/authorize?response_type=token&scope=https%3A%2F%2F[REDACTED].onmicrosoft.com%2Fapi%2Fuser_impersonation%20openid%20profile&client_id=419bcab7-064e-4ec6-bafa-9090218c1bfa&redirect_uri=https%3A%2F%2F[REDACTED].westeurope.cloudapp.azure.com&state=[REDACTED]&nonce=b0554c3a-e20f-4fb1-9247-85c44277654d&client_info=1&x-client-SKU=MSAL.JS&x-client-Ver=1.3.4&client-request-id=2bdd6d9a-5e20-4276-8148-52e0acb7e0fa&prompt=none&response_mode=fragment

fails with a redirection to the default URL with

error=server_error&error_description=AADB2C%3a+An+exception+has+occurred.%0d%0aCorrelation+ID%3a+1edfd531-18b6-488f-ae42-122733fa480f%0d%0aTimestamp%3a+2021-10-01+12%3a52%3a48Z%0d%0a&state=[REDACTED]


What has changed?

How do we debug the problem?

azure-ad-b2cazure-ad-msal
· 2
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.

Could you please share the full correlation ID and any error you receive in your logs?

0 Votes 0 ·
IzzyHewage-9543 avatar image IzzyHewage-9543 MarileeTurscak-MSFT ·

Hi,

I'm getting the same error and this is only happening when the Single sign on is enabled on the User flow. In my scenario, i have 1 app registration and two web portals using the same user flow and client ID. B2C authentication works fine on the first portal. However, when i click sign in on the second portal (after signing to Azure B2C) it fails with this error when its trying to automatically login in. Once i refresh again, it redirects me to Azure B2C sign in page again and everything is working fine.

But this is not the expected behavior as i want the single sign on to work. My correlation ID is ID: 5f5c5329-a560-4f7c-8e79-d73f86939f08 Timestamp: 2021-10-08 04:27:57Z ' (See screenshot below)

138689-screenshot-1.png



0 Votes 0 ·
screenshot-1.png (14.1 KiB)

0 Answers