Ueberauth.Strategy.Cognito (Ueberauth Cognito v0.4.0) View Source
Implements an Ueberauth.Strategy
for AWS Cognito.
Several options are available for configuring the strategy. The main keys you need to worry about are:
auth_domain
client_id
client_secret
user_pool_id
aws_region
These should all be available from your AWS Cognito setup. Additionally, there are a couple of options specifying what modules to use for some particular functions:
http_client
jwt_verifier
These are mainly used for dependency injection when testing and users of this library shouldn't have to concern themselves with them.
Link to this section Summary
Functions
Returns standard Ueberauth.Auth.Credentials
struct. The other
key will be a map
including a groups
key, which is a list of any groups the user is associated with in
Cognito
The raw_info
key of the returned struct includes everything from the raw Cognito
response in cognito_id_token
.
Handle the callback step of the strategy.
Handles the cleanup step of the strategy.
Handle the request step of the strategy.
Fetches the fields to populate the info section of the Ueberauth.Auth
struct.
Returns the username given in the Cognito response.
Link to this section Functions
Returns standard Ueberauth.Auth.Credentials
struct. The other
key will be a map
including a groups
key, which is a list of any groups the user is associated with in
Cognito
The raw_info
key of the returned struct includes everything from the raw Cognito
response in cognito_id_token
.
Handle the callback step of the strategy.
Handles the cleanup step of the strategy.
Handle the request step of the strategy.
Fetches the fields to populate the info section of the Ueberauth.Auth
struct.
Returns the username given in the Cognito response.