简体   繁体   English

.Net Core 3.1 - 如何为 Azure AD B2C 生成注册链接?

[英].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.

相关问题 ASP.NET Core 3.1 如何使用 Azure AD B2C 返回 401 Unauthorized 而不是 Challenge - ASP.NET Core 3.1 how to return 401 Unauthorized instead of Challenge with Azure AD B2C ASP.NET Core:Azure AD B2C自助密码重置(注册/登录策略) - ASP.NET Core: Azure AD B2C self service password reset (sign-up/sign-in policy) 如何从 Azure AD B2C 用户商店获取 ASP.NET Core 3.1 中的用户信息? - How to get user information in ASP.NET Core 3.1 from Azure AD B2C user store? 使用 Azure AD B2C on.Net Core 3.1 获取 OBO 流的错误 AADST50013 - Getting error AADST50013 for OBO flow using Azure AD B2C on .Net Core 3.1 将 Azure B2C 与 MVC、.NET Core 3.1 结合使用 - Using Azure B2C with MVC, .NET Core 3.1 Azure B2C 和 .net 核心 3.1 认证问题 - Azure B2C and .net core 3.1 Authentication Problem 如何在网络应用启动时使用azure ad b2c登录政策? - How to use an azure ad b2c sign in policy on web app start up? ASP.NET Core 3.1 和 Azure AD B2C 与外部身份提供者身份验证 - invalid_request - ASP.NET Core 3.1 and Azure AD B2C with external Identity Providers auth - invalid_request 如何使用 MSAL C#、.net 核心在 Azure AD B2C 用户帐户上重置密码? - How to reset password on Azure AD B2C user account using MSAL C#, .net core? 使用 Azure AD B2C 使用个人用户帐户登录 ASP.Net Core Web 应用程序 -> API - Sign in to ASP.Net Core Web Application -> API with Individual User Accounts using Azure AD B2C
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM