简体   繁体   中英

Azure Active Directory B2C with Azure Front door auth response uses wrong domain

We are using Azure Active Directory B2C in combination with Azure Front door. When signing in with a password and username it works fine, but when signing in with a social provider it shows the wrong domain.

Before sign in:

在此处输入图像描述

After sign in with social provider (loading before continuing with, in this case localhost)

在此处输入图像描述

The difference here, is that before the sign-in we have login.timchermin.com/ login.timchermin.com and after we have login.timchermin.com/ lokaalaybler.onmicrosoft.com . I would prefer the onmicrosoft.com to also be login.timchermin.com.

I tried putting https://login.timchermin.com/login.timchermin.com/oauth2/authresp in the google cloud app setting. But this will give the following error.

在此处输入图像描述

(How) Can I make it so that my authresp also includes the domain in after the first /? I am also using custom policies, if that makes a difference. The domain login.timchermin.com is also set as the primary domain. 在此处输入图像描述

Please make sure that you have all redirect URLs registered properly in your social IDP. This is my configuration for the Facebook login. I also use Front Door with Azure AD B2C:

在此处输入图像描述

Redirect URL should be aligned with this pattern when using custom domain:

https://your-custom-domain/name-of-your-ad-b2c-tenant.onmicrosoft.com/oauth2/authresp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM