[英].Net Core 3.1 - how to generate Sign Up link for Azure AD B2C?
I use Azure AD B2C for my ASP.NET Core 3.1 web app.我将 Azure AD B2C 用于我的 ASP.NET Core 3.1 web 应用程序。 Currently, there's built-in UI for users to log in - basically, let's pretend it's just a scaffolded new app in VS2019 with Azure B2C authentication.
目前,有内置的 UI 供用户登录 - 基本上,让我们假设它只是 VS2019 中一个带有 Azure B2C 身份验证的脚手架新应用程序。
But I need to customize this UI and to generate "Sign Up" link in particular.但我需要自定义此 UI 并特别生成“注册”链接。 How to do this?
这个怎么做?
As you would do for any policy or user flow :正如您对任何策略或用户流所做的那样:
https://{tenant}.b2clogin.com/{tenant}.onmicrosoft.com/{policy}/oauth2/v2.0/authorize?client_id={b2c app id}&response_type=code&redirect_uri={b2c app redirect uri, depending on the sdk used this may be a specific}&response_mode=query&scope={b2c app scope}&state={custom data}
Eg:例如:
https://contoso.b2clogin.com/contoso.onmicrosoft.com/b2c_1_sign_up/oauth2/v2.0/authorize?client_id=90c0fe63-bcf2-44d5-8fb7-b8bbc0b29dc6&response_type=code&redirect_uri=https://myapp.azurewebsites.com/&response_mode=query&scope=90c0fe63-bcf2-44d5-8fb7-b8bbc0b29dc6%20offline_access&state=arbitrary_data_you_can_receive_in_the_response
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.