Class SignInAliases
The different ways in which users of this pool can sign up or sign in.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Cognito
Assembly: Amazon.CDK.AWS.Cognito.dll
Syntax (csharp)
public class SignInAliases : Object, ISignInAliases
Syntax (vb)
Public Class SignInAliases
Inherits Object
Implements ISignInAliases
Remarks
ExampleMetadata: infused
Examples
new UserPool(this, "myuserpool", new UserPoolProps {
// ...
// ...
SignInAliases = new SignInAliases {
Username = true,
Email = true
}
});
Synopsis
Constructors
SignInAliases() |
Properties
Whether a user is allowed to sign up or sign in with an email address. |
|
Phone | Whether a user is allowed to sign up or sign in with a phone number. |
PreferredUsername | Whether a user is allowed to sign in with a secondary username, that can be set and modified after sign up. |
Username | Whether user is allowed to sign up or sign in with a username. |
Constructors
SignInAliases()
public SignInAliases()
Properties
Whether a user is allowed to sign up or sign in with an email address.
public Nullable<bool> Email { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false
Phone
Whether a user is allowed to sign up or sign in with a phone number.
public Nullable<bool> Phone { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false
PreferredUsername
Whether a user is allowed to sign in with a secondary username, that can be set and modified after sign up.
public Nullable<bool> PreferredUsername { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Can only be used in conjunction with USERNAME
.
Default: false
Username
Whether user is allowed to sign up or sign in with a username.
public Nullable<bool> Username { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: true