AuthFlow

class aws_cdk.aws_cognito.AuthFlow(*, admin_user_password=None, custom=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: false

  • custom (Optional[bool]) – Enable custom authentication flow. Default: false

  • user_password (Optional[bool]) – Enable auth using username & password. Default: false

  • user_srp (Optional[bool]) – Enable SRP based authentication. Default: false

See:

https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-authentication-flow.html

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_password

Enable auth using username & password.

Default:

false

user_srp

Enable SRP based authentication.

Default:

false