question

PrateekRathore-4047 avatar image
0 Votes"
PrateekRathore-4047 asked PrateekRathore-4047 commented

Adb2c Custom domain not working

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.

azure-ad-domain-servicesazure-ad-openid-connect
image.png (51.8 KiB)
image.png (67.4 KiB)
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

alfredorevilla-msft avatar image
0 Votes"
alfredorevilla-msft answered alfredorevilla-msft commented

Hi @PrateekRathore-4047, 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.

· 1
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.

yes both custom domains targeting single deployed application.

If i use same configuration in application on my local system and both custom domains are working fine with no issue.

Is there any thing on application servers ?

we need to check or add regarding this on application servers or anything. As we are not able to figure out 1 custom domain is working and other is not working with same deployed code.

or its something related to front door service side ?

0 Votes 0 ·