Created
January 21, 2022 05:42
-
-
Save mfcollins3/b648dad12b27369489a2779e9bfbed64 to your computer and use it in GitHub Desktop.
Sign up form claims for B2C
This file contains 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
<BuildingBlocks> | |
<ClaimsSchema> | |
<ClaimType Id="signInName"> | |
<DisplayName>Username</DisplayName> | |
<DataType>string</DataType> | |
<UserHelpText>Username</UserHelpText> | |
<UserInputType>TextBox</UserInputType> | |
</ClaimType> | |
<ClaimType Id="newPassword"> | |
<DisplayName>New Password</DisplayName> | |
<DataType>string</DataType> | |
<UserHelpText>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="reenterPassword"> | |
<DisplayName>Confirm Password</DisplayName> | |
<DataType>string</DataType> | |
<UserHelpText>Confirm the 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> | |
</ClaimsSchema> | |
</BuildingBlocks> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment