Skip to content

Lambda function pass only permitted users authenticated by Amazon Cognito.

Notifications You must be signed in to change notification settings

handlename/cognito-gate

Repository files navigation

cognito-gate

cognito-gate is a application to simplify make permission trigger for Amazon Cognito, runs on AWS Lambda.

Usage

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

Configuration

in YAML format.

pools:
  - id: <userPoolId>
    allows:
      - <pattern ::= 'domain' | 'email'>
      - ...

example:

pools:
  - id: ap-northeast-1_XXXX
    allows:
      - "example.com"
      - "alice@example.net"

Lisence

MIT

Author

@handlename (https://github.com/handlename)

About

Lambda function pass only permitted users authenticated by Amazon Cognito.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published