module
Version:
v0.0.0-...-8510674
Opens a new window with list of versions in this module.
Published: Jun 2, 2022
License: GPL-3.0
Opens a new window with license information.
README
¶
sam-aws-lambda-cognito-go
Run
- Set the following environment variables
- STACK_NAME
- STACK_BUCKET (this bucket must exist in your AWS environment)
- YOUR_EMAIL (The template will create a user at this email and send you a temp password)
- run
make deploy
- run
./scripts/login_first.sh {{User Pool ID}} {{User Pool Client ID}} {{Your Email}} {{Temp password that was sent to you}}
- Get the first two values from the cloudformation outputs dashboard
- run
curl {{Url to your api}}/open
- Will work before logging in
- run
curl -H "Authorization: {{Auth Token from script above}}" {{Url to your api}}
- Will only work if you add the Authorization Header
"# sam-aws-lambda-cognito-go"
Directories
¶
Click to show internal directories.
Click to hide internal directories.