paul1923
paul1923

Reputation: 471

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

Upvotes: 3

Views: 2340

Answers (2)

Dan Giddins
Dan Giddins

Reputation: 1

Currently, only EditProfilePolicyId, SignUpSignInPolicyId and ResetPasswordPolicyId are supported by Microsoft.Identity.Web, as can be seen here.

I have raised a pull request for this feature. Hopefully we can get this added soon and we can all have separate 'Sign Up' and 'Sign In' buttons on our web apps!

Upvotes: 0

unknown
unknown

Reputation: 7483

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.

Upvotes: 3

Related Questions