简体   繁体   English

Azure AD B2C 注册和登录页面的自定义 URL

[英]Custom URL for Azure AD B2C signup and signin pages

I'm working on integrating Azure Active directory B2C for sign-up and sign-in process.我正在为注册和登录过程集成 Azure Active Directory B2C。 By default, when a user clicks the login button, it has to redirect the user to a different domain ( microsoftonline.com ) such that the URL for sign-up and sign-in page is in the following format:默认情况下,当用户单击登录按钮时,它必须将用户重定向到不同的域 ( microsoftonline.com ),以便注册和登录页面的 URL 采用以下格式:

https://login.microsoftonline.com/te/tenant-name.onmicrosoft.com/b2c_1_signupsignin1/oauth2/v2.0/authorize ....... https://login.microsoftonline.com/te/tenant-name.onmicrosoft.com/b2c_1_signupsignin1/oauth2/v2.0/authorize .......

However, I think this is a bad user experience for users redirecting them to other domain for signing in. So I'd like to use my own domain (eg example.com) so that the URL should be like below.但是,我认为对于将他们重定向到其他域进行登录的用户来说,这是一种糟糕的用户体验。所以我想使用我自己的域(例如 example.com),以便 URL 应如下所示。

https://login.example.com/te/tenant-name.onmicrosoft.com/b2c_1_signupsignin1/oauth2/v2.0/authorize ....... https://login.example.com/te/tenant-name.onmicrosoft.com/b2c_1_signupsignin1/oauth2/v2.0/authorize .......

I've done some research on Azure documentation and found out that it does not currently support setting up the custom URL for sign-up and sign-in page.我对 Azure 文档进行了一些研究,发现它目前不支持为注册和登录页面设置自定义 URL。
https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-faqs https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-faqs

However, the case study from Azure B2C mentioned that the Real Madrid offical home page also uses Azure AD B2C for user management ( https://customers.microsoft.com/en-ca/story/real-madrid ).但是,Azure B2C 的案例研究提到皇家马德里官方主页也使用 Azure AD B2C 进行用户管理( https://customers.microsoft.com/en-ca/story/real-madrid )。 However, the domain in the URL for sign-in page is not microsoftonline.com but their own domain, realmadrid.com , like below但是,登录页面 URL 中的域不是microsoftonline.com而是他们自己的域realmadrid.com ,如下所示

https://pro.login.realmadrid.com/rmglndpdaadfans.onmicrosoft.com/oauth2/authorize?p=B2C_1_SignInSignUpWeb&client_id=8a943960-87f9-4e22-bc2a-40099d584719&redirect_uri=http%3A%2F%2Fwww.realmadrid.com%2Fcs%2FSatellite%3Fpagename%3DRealMadridResponsive%2FPage%2FRM_IDPRespuesta&resource=https%3A%2F%2Frmglndpdaadfans.onmicrosoft.com%2Fwebapi&response_mode=fragment&response_type=token+id_token&scope=openid&nonce=defaultNonce&idpmode=0&lang=en&_ga=2.211460117.1443111640.1554916216-543571806.1554916216 https://pro.login.realmadrid.com/rmglndpdaadfans.onmicrosoft.com/oauth2/authorize?p=B2C_1_SignInSignUpWeb&client_id=8a943960-87f9-4e22-bc2a-40099d584719&redirect_uri.onmicrosoft.com/oauth2/authorize? 2FSatellite%3Fpagename%3DRealMadridResponsive%2FPage%2FRM_IDPRespuesta&资源= HTTPS%3A%2F%2Frmglndpdaadfans.onmicrosoft.com%2Fwebapi&response_mode =片段RESPONSE_TYPE =记号+ id_token&范围=的OpenID&随机数= defaultNonce&idpmode = 0&郎= EN&_ga = 2.211460117.1443111640.1554916216-543571806.1554916216

I've checked the following pages but none of them helped..我检查了以下页面,但没有一个帮助..

  1. https://techcommunity.microsoft.com/t5/Azure-Active-Directory/B2C-with-custom-login-URL/td-p/44040 https://techcommunity.microsoft.com/t5/Azure-Active-Directory/B2C-with-custom-login-URL/td-p/44040

  2. https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-faqs https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-faqs

So how can I achieve this as Real Madrid home page did with Azure AD B2C?那么我怎样才能像皇马主页使用 Azure AD B2C 那样实现呢?

Currently, you are able to use the your-tenant-name.b2clogin.com domain (recommended) or the login.microsoftonline.com domain, latter of which is being deprecated.目前,您可以使用your-tenant-name.b2clogin.com(推荐)或login.microsoftonline.com域,后者已被弃用。

Work for support of customer-owned domains has been started. 支持客户拥有的域的工作已经开始。

公共预览版现已提供为 B2C 租户使用自定义域的功能https://docs.microsoft.com/en-us/azure/active-directory-b2c/custom-domain?pivots=b2c-user-flow

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 启用了MFA的Azure AD B2C注册-登录策略-自定义登录页面 - Azure AD B2C SignUp-SignIn policy with MFA turned on - Custom Login Page 用于登录/注册生成404的Azure AD B2C自定义登录页面 - Azure AD B2C custom login page for signin/signup generating 404 Azure AD B2C自定义登录策略显示SignUpSignIn - Azure AD B2C Custom SignIn Policy Displays SignUpSignIn 如何修改 Azure Web 应用程序的 Azure AD B2C 登录/注册页面 - How to modify the Azure AD B2C SignIn/Signup page for Azure web app Azure 通过 AD 进行 B2C 登录 - Azure B2C signin over AD 带有电子邮件/电话号码的 Azure AD B2C 登录/注册流程 - Azure AD B2C SignIn/Signup Flows with Email/Phone Number Azure AD B2C-不重定向到登录/注册页面(login.microsoftonline.com…) - Azure AD B2C - Not redirecting to SignIn/SignUp Page(login.microsoftonline.com…) Azure AD B2C 注册 - Azure AD B2C signUp 在移动应用上注册登录期间绕过 Azure AD B2C 中的电子邮件验证 - Bypassing Email Verification within Azure AD B2C during Signup Signin on Mobile app 使用无密码 azure B2C 登录自定义策略生成 Azure AD 登录日志的推荐方法是什么? - What is the recommended approach for generating Azure AD Signin logs with passwordless azure B2C signin custom policy?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM