Adb2c Custom domain not working

Prateek Rathore 21 Reputation points
2022-04-21T07:34:18.217+00:00

hi, @AmanpreetSingh-MSFT
we have 2 custom domain in our adb2c account.. lets suppose

  1. login.ABC.com
  2. login.XYZ.com

So, whenever i request for adb2c sign in user flow with above custom domain from my local system everything working fine , it opens sign in page smoothly.
now , deployed a sample application to my staging server first i tried with my first custom domain login.ABC.com it works same as expected no issue there.
but, when i tried with other custom domain login.XYZ.com it gives me below errors :

First at sign in click button it give me error: "An existing connection was forcibly closed by the remote host" .. please check screenshot
194969-image.png

Second when i click back button and again click sign in button it give me different error: "IDX20803: Unable to obtain configuration from: 'https://login.XYZ.com/tfp/PQR.onmicrosoft.com/B2C_1_XYZ_SignIn/v2.0/.well-known/openid-configuration'." .. please check screenshot
194970-image.png

Looking forward for any kind of help.

Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,668 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. 2022-04-22T16:31:50.29+00:00

    Hi @Prateek Rathore , the first issue could be caused by your application (trough its runtime) not supporting or using TLS 1.2 which is the version required by Azure AD B2C however it catches my attention that reaching one of the custom domains has no issue. Are you targeting both custom domains from a single deployed application?

    Second issue must be a consequence of first request failing thus no OpenID Connect metadata document is available.

    Let us know if this answer was helpful to you or if you need additional assistance. If it was helpful, please remember to accept it and complete the quality survey so that others in the community with similar questions can more easily find a rated solution.