Amazon Cognito is a backend-as-a-service that lets you focus on developing the user experience for your application. To learn more and sign up for services, read Amazon Cognito and the process for creating an OpenID Connect (OIDC) provider via AWS CLI.
Open the IAM Console, select Identity Providers in the left sidebar, and then select Add Provider.
Select OpenID Connect as the Provider Type.
For the Provider URL:
Enter your Domain into the Provider URL field.
Enter your Client ID into the Audience field.
Select Add Provider.
Navigate to your newly created provider and record the Provider ARN.
It’s not necessary to set up an IAM role after creating the IdP. If you don’t have one already, Cognito will create a default IAM role when you create an Identity Pool.
Cognito uses the public signing key from the OpenID Provider Metadata to validate the signature of the (JWT).Confirm that your Auth0 application is configured to use the RS256 signature algorithm:
You can use the Auth0 Lock SDK to integrate Auth0 within your application.Once the user logs in with Auth0, the next step is to send their credentials to Cognito. To learn more, read Open ID Connect providers (identity pools) on AWS Docs.Cognito takes the a user receives from Auth0, and uses it to generate unique Cognito IDs. When the user logs in to Cognito through Auth0, you can store information in Cognito that only they can access.