interface AuthFlow
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Cognito.AuthFlow |
![]() | software.amazon.awscdk.services.cognito.AuthFlow |
![]() | aws_cdk.aws_cognito.AuthFlow |
![]() | @aws-cdk/aws-cognito » AuthFlow |
Types of authentication flow.
Example
const pool = new cognito.UserPool(this, 'pool');
pool.addClient('app-client', {
authFlows: {
userPassword: true,
userSrp: true,
},
});
Properties
Name | Type | Description |
---|---|---|
admin | boolean | Enable admin based user password authentication flow. |
custom? | boolean | Enable custom authentication flow. |
user | boolean | Enable auth using username & password. |
user | boolean | Enable SRP based authentication. |
adminUserPassword?
Type:
boolean
(optional, default: false)
Enable admin based user password authentication flow.
custom?
Type:
boolean
(optional, default: false)
Enable custom authentication flow.
userPassword?
Type:
boolean
(optional, default: false)
Enable auth using username & password.
userSrp?
Type:
boolean
(optional, default: false)
Enable SRP based authentication.