Created
January 16, 2022 05:11
-
-
Save mfcollins3/1e8330fb54edc8440bb0af8348b95e85 to your computer and use it in GitHub Desktop.
New claims for B2C sign-up
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ClaimType Id="email"> | |
<DisplayName>Email Address</DisplayName> | |
<DataType>string</DataType> | |
<DefaultPartnerClaimTypes> | |
<Protocol Name="OpenIdConnect" PartnerClaimType="email" /> | |
</DefaultPartnerClaimTypes> | |
<UserHelpText>Email address that can be used to contact you.</UserHelpText> | |
<UserInputType>TextBox</UserInputType> | |
<Restriction> | |
<Pattern RegularExpression="^[a-zA-Z0-9.!#$%&'^_`{}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$" HelpText="Please enter a valid email address." /> | |
</Restriction> | |
</ClaimType> | |
<ClaimType Id="executed-SelfAsserted-Input"> | |
<DisplayName>Executed-SelfAsserted-Input</DisplayName> | |
<DataType>string</DataType> | |
<UserHelpText>A claim that specifies whether attributes were collected from the user.</UserHelpText> | |
</ClaimType> | |
<ClaimType Id="newPassword"> | |
<DisplayName>New Password</DisplayName> | |
<DataType>string</DataType> | |
<UserHelpText>Enter new password</UserHelpText> | |
<UserInputType>Password</UserInputType> | |
<Restriction> | |
<Pattern RegularExpression="^((?=.*[a-z])(?=.*[A-Z])(?=.*\d)|(?=.*[a-z])(?=.*[A-Z])(?=.*[^A-Za-z0-9])|(?=.*[a-z])(?=.*\d)(?=.*[^A-Za-z0-9])|(?=.*[A-Z])(?=.*\d)(?=.*[^A-Za-z0-9]))([A-Za-z\d@#$%^&*\-_+=[\]{}|\\:',?/`~"();!]|\.(?!@)){8,16}$" HelpText="8-16 characters, containing 3 out of 4 of the following: Lowercase characters, uppercase characters, digits (0-9), and one or more of the following symbols: @ # $ % ^ & * - _ + = [ ] { } | \ : ' , ? / ` ~ " ( ) ; ." /> | |
</Restriction> | |
</ClaimType> | |
<ClaimType Id="passwordPolicies"> | |
<DisplayName>Password Policies</DisplayName> | |
<DataType>string</DataType> | |
<UserHelpText>Password policies used by Azure AD to determine password strength, expiry etc.</UserHelpText> | |
</ClaimType> | |
<ClaimType Id="reenterPassword"> | |
<DisplayName>Confirm New Password</DisplayName> | |
<DataType>string</DataType> | |
<UserHelpText>Confirm new password</UserHelpText> | |
<UserInputType>Password</UserInputType> | |
<Restriction> | |
<Pattern RegularExpression="^((?=.*[a-z])(?=.*[A-Z])(?=.*\d)|(?=.*[a-z])(?=.*[A-Z])(?=.*[^A-Za-z0-9])|(?=.*[a-z])(?=.*\d)(?=.*[^A-Za-z0-9])|(?=.*[A-Z])(?=.*\d)(?=.*[^A-Za-z0-9]))([A-Za-z\d@#$%^&*\-_+=[\]{}|\\:',?/`~"();!]|\.(?!@)){8,16}$" HelpText=" " /> | |
</Restriction> | |
</ClaimType> | |
<ClaimType Id="signInNames.emailAddress"> | |
<DisplayName>Email Address</DisplayName> | |
<DataType>string</DataType> | |
<UserHelpText>Email address to use for signing in.</UserHelpText> | |
<UserInputType>TextBox</UserInputType> | |
</ClaimType> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment