https://github.com/oieduardorabelo/2021-03-19-cognito-java-post-signup-confirmation
Working example of Amazon Cognito Post Confirmation Hook with Java 8 and Serverless Framework
https://github.com/oieduardorabelo/2021-03-19-cognito-java-post-signup-confirmation
Last synced: 13 days ago
JSON representation
Working example of Amazon Cognito Post Confirmation Hook with Java 8 and Serverless Framework
- Host: GitHub
- URL: https://github.com/oieduardorabelo/2021-03-19-cognito-java-post-signup-confirmation
- Owner: oieduardorabelo
- Created: 2021-03-18T10:14:37.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-18T10:24:39.000Z (almost 4 years ago)
- Last Synced: 2025-01-13T14:15:39.208Z (about 1 month ago)
- Language: Java
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Working example of Amazon Cognito Post Confirmation Hook with Java 8 and Serverless Framework
To generate a new user and complete the confirm sign up flow, I used:
```bash
aws cognito-idp \
sign-up \
--client-id xxxxxxxxxxxx \
--username [email protected] \
--password [email protected] \
--region us-east-1aws cognito-idp \
admin-confirm-sign-up \
--user-pool-id xxxxxxxxxxxxxx \
--username [email protected] \
--region us-east-1
```Log output in CloudWatch:
```bash
2021-03-18 10:09:04 e52d1586-7627-4187-abfd-3d8046afa0ac INFO Handler:18 - received: {version=1, region=us-east-1, userPoolId=us-east-1_AKn4tsX5C, userName=10axxx-7dxx-4xxx-xxx1-2xxxxxxxxx, callerContext={awsSdkVersion=aws-sdk-unknown-unknown, clientId=null}, triggerSource=PostConfirmation_ConfirmSignUp, request={userAttributes={sub=10axxx-7dxx-4xxx-xxx1-2xxxxxxxxx, cognito:[email protected], cognito:user_status=CONFIRMED, email_verified=false, [email protected]}}, response={}}
```---
- StackOverflow: https://stackoverflow.com/questions/66684536/not-receiving-user-details-on-cognito-post-confirmation-trigger/66689113#66689113