AWS Cognito Authentication with Escape
Description
The 'Cognito User Password' preset is designed for authentication using AWS Cognito with username and password credentials:
- AWS Cognito Integration: Leverages AWS Cognito, a comprehensive user identity and data synchronization service, for authentication.
- Regional Configuration: Allows specifying the AWS region where the Cognito service is hosted, ensuring proper routing and compliance with data residency requirements.
- Client Credentials: Utilizes a client ID and client secret for secure OAuth requests within the Cognito framework.
- User Authentication: Facilitates the creation and authentication of users with a username and password.
This preset is ideal for systems that use AWS Cognito for managing user authentication, providing a seamless integration with the AWS ecosystem.
Examples
presets:
- type: cognito_userpass
client_id: yourCognitoClientId
client_secret: yourCognitoClientSecret
region: us-west-1
users:
- username: user1
password: pass1
scopes:
- create
- delete
- username: user2
password: pass2
Extensive Configuration
| Property | Type | Required | Description | Reference |
|---|---|---|---|---|
| type | Const[cognito_userpass] | True | ||
| users | CognitoUserpassUserPreset | True | A list of users to create | CognitoUserpassUserPreset |
| region | AWSRegion | True | The region of the Cognito Service. | AWSRegion |
| client_id | string | True | The client ID to use for the OAuth requests | |
| client_secret | string | True | The client secret to use for the OAuth requests |
Objects
CognitoUserpassUserPreset
| Property | Type | Required | Description | Reference |
|---|---|---|---|---|
| username | string | True | The username of the user. | |
| headers | Dict[string, string] | False | Optional headers injected during the authentication process and in authentified requests. | |
| cookies | Dict[string, string] | False | Optional cookies injected during the authentication process and in authentified requests. | |
| password | string | True | The password of the user. | |
| scopes | string | False | A list of scopes to request for the user. If not specified, no scope will be requested. |
Enums
AWSRegion
us-east-2us-east-1us-west-1us-west-2af-south-1ap-east-1ap-south-1ap-northeast-3ap-northeast-2ap-southeast-1ap-southeast-2ap-northeast-1ca-central-1cn-north-1cn-northwest-1eu-central-1eu-west-1eu-west-2eu-south-1eu-west-3eu-north-1me-south-1sa-east-1