Quantcast
Channel: Azure Active Directory forum
Viewing all articles
Browse latest Browse all 16000

b2clogin.com replacing domain name with tenant name in callback url

$
0
0

I have an Azure AD B2C domain with a custom domain name.

Let's say the domain name is company.com and the ad tenant name is company.onmicrosoft.com.

If I send an authorize request such as https://company.b2clogin.com/company.onmicrosoft.com/b2c_1_signinup/oauth2/v2.0/authorize?client_id=XXXXXXXXXXXXXXXXXXXXXXX&response_type=id_token&redirect_uri=https%3a%2f%2fwww.company.com%2flogin%2fcallback&scope=openid&nonce=1549468309&p=B2C_1_SignInUp&response_mode=fragment

It works and redirects as expected. 

However, if I send a request at the suggested url to 

https://company.b2clogin.com/company.com/b2c_1_signinup/oauth2/v2.0/authorize?client_id=XXXXXXXXXXXXXXXXXXXXXXX&response_type=id_token&redirect_uri=https%3a%2f%2fwww.company.com%2flogin%2fcallback&scope=openid&nonce=1549468309&p=B2C_1_SignInUp&response_mode=fragment

I get an error response back that says https://www.company.onmicrosoft.com/login/callback is not a valid registered callback url.

Notice that Azure AD replaces "company.com" with "company.onmicrosoft.com" in the callback url that I sent. 

I would prefer not to have "company.onmicrosoft.com" in the login url path. 

Is my AD B2C instance not configured correctly or is this a bug in Azure AD B2C?



Viewing all articles
Browse latest Browse all 16000

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>