cognito-gate
is a application to simplify make permission trigger for Amazon Cognito, runs on AWS Lambda.
Download binary from release, deploy as Lambda function as your favorite way.
cognito-gate
is for runtime provided.al2
.
bootstrap file may be like this:
#!/bin/sh
cd $LAMBDA_TASK_ROOT
./cognito-gate
in YAML format.
pools:
- id: <userPoolId>
allows:
- <pattern ::= 'domain' | 'email'>
- ...
example:
pools:
- id: ap-northeast-1_XXXX
allows:
- "example.com"
- "alice@example.net"
MIT
@handlename (https://github.com/handlename)