-
Notifications
You must be signed in to change notification settings - Fork 928
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
269396d
commit 77585ca
Showing
3 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# WebSocket API Cognito Authentication using Lambda Authorizer | ||
|
||
This pattern demonstrates how to integrate Cognito authentication with Amazon API Gateway WebSocket API. | ||
This pattern demonstrates how to integrate Amazon Cognito authentication with Amazon API Gateway WebSocket API. | ||
|
||
It includes the Lambda implementations for Lambda Authorizer, Lambda functions for $connect, $disconnect and custom route, and AWS Serverless Application Model (SAM) code to deploy backend infrastructure. | ||
|
||
|
@@ -48,13 +48,15 @@ API Gateway Websocket API doesn't support [Cognito authorizer](https://docs.aws. | |
In order to test, follow the steps given below: | ||
|
||
### Step 1. Create a user in Cognito user pool | ||
> Note: For production workloads, you should use a strong password; the password given below is simply for demonstration purposes. | ||
```bash | ||
# perform sign-up | ||
aws cognito-idp sign-up \ | ||
--region YOUR_COGNITO_REGION \ | ||
--client-id YOUR_COGNITO_APP_CLIENT_ID \ | ||
--username [email protected] \ | ||
--password Passw0rd! | ||
--password Passw0rd! | ||
|
||
# confirm sign-up | ||
aws cognito-idp admin-confirm-sign-up \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters