AuthFlow
- class aws_cdk.aws_cognito.AuthFlow(*, admin_user_password=None, custom=None, user=None, user_password=None, user_srp=None)
Bases:
object
Types of authentication flow.
- Parameters:
admin_user_password (
Optional
[bool
]) – Enable admin based user password authentication flow. Default: falsecustom (
Optional
[bool
]) – Enable custom authentication flow. Default: falseuser (
Optional
[bool
]) – Enable Choice-based authentication. Default: falseuser_password (
Optional
[bool
]) – Enable auth using username & password. Default: falseuser_srp (
Optional
[bool
]) – Enable SRP based authentication. Default: false
- See:
- ExampleMetadata:
infused
Example:
pool = cognito.UserPool(self, "pool") pool.add_client("app-client", auth_flows=cognito.AuthFlow( user_password=True, user_srp=True ) )
Attributes
- admin_user_password
Enable admin based user password authentication flow.
- Default:
false
- custom
Enable custom authentication flow.
- Default:
false
- user
Enable Choice-based authentication.
- Default:
false
- user_password
Enable auth using username & password.
- Default:
false
- user_srp
Enable SRP based authentication.
- Default:
false