首页 > 解决方案 > I just need a SignUp Policy. Anyone know the PolicyId's for ASP.NET Core Azure AD B2C Configurations

问题描述

All I'm looking for is a direct link to the Register User flow for Azure AD B2C. Currently a user needs to hit the Sign In form, then needs to select "Sign up Now".

I've search high and low through the Azure B2C doco, and can't find the right text for the PolicyId to link to my SignUp page only.

While the doco clearly shows what you need to do with SignUpSignInPolicyId, ResetPasswordPolicyId and EditProfilePolicyId eg...

    "SignUpSignInPolicyId": "B2C_1_SignInRegister",
    "ResetPasswordPolicyId": "B2C_1_PasswordReset",
    "EditProfilePolicyId": "B2C_1_ProfileEdit",

The doco doesn't list the full range of ...PolicyId's, that .AddAzureADB2C(options => Configuration.Bind("AzureAdB2C", options)); allow's

标签: asp.net-coreazure-ad-b2c

解决方案


There are the properties of MicrosoftIdentityOptions in the link. SignUpSignInPolicyId, ResetPasswordPolicyId and EditProfilePolicyId are the all properties about PolicyId.

enter image description here

You need to create user flows about sign up and sign in when you want to use SignUpSignInPolicyId. It is similar to other policies. You could try this by following the sample.


推荐阅读