davidgf / Serverless Cognito
Example of how you can integrate Cognito User Pools in your Serverless service
Stars: ✭ 54
Labels
Serverless Cognito
Setup
serverless deploy
Besides deploying the service, we need to manually configure some details, since CloudFormation falls short. So, in the Cognito Dashboard, select the User Pool and follow the steps below:
- Select "App client settings", enable Cognito User Pool as a provider and enter the callback and sign out URLs. Select "Implicit grant" as allowed OAuth flow and tick all the scopes
- Select "Domain name" and create one
Usage
- Open a web browser and go to
https://<your_domain>/login?response_type=token&client_id=<your_app_client_id>&redirect_uri=<your_callback_url>
- After loging in successfully, you'll be redirected to your calback URL with
id_token
in the query string - Put
id_token
in theAuthorization
HTTP header when submitting requests to the API
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].