Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/farminf/aws-cdk-passwordless
an AWS CDK construct for having passwordless authentication using Cognito userpool
https://github.com/farminf/aws-cdk-passwordless
aws cognito passwordless serverless
Last synced: about 1 month ago
JSON representation
an AWS CDK construct for having passwordless authentication using Cognito userpool
- Host: GitHub
- URL: https://github.com/farminf/aws-cdk-passwordless
- Owner: farminf
- Created: 2019-08-19T14:48:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T08:16:21.000Z (almost 2 years ago)
- Last Synced: 2024-08-02T00:26:15.421Z (4 months ago)
- Topics: aws, cognito, passwordless, serverless
- Language: JavaScript
- Homepage:
- Size: 4.11 MB
- Stars: 20
- Watchers: 3
- Forks: 1
- Open Issues: 37
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-cdk - cdk-passwordless - Construct for having passwordless authentication using userpool. (Construct Libraries / Security)
- awesome-cdk - cdk-passwordless - Construct for having passwordless authentication using userpool. (Construct Libraries / Security)
README
# AWS CDK PasswordLess Construct
An AWS CDK construct for creating passwordless authentication resources on AWS.
This Construct will create following resources with their configuration:- Cognito User Pool
- Cognito Pool Client
- Cognito Lambda Trigger# Usage
```bash
yarn add aws-cdk-passwordless
``````js
import { CdkPasswordless } from "aws-cdk-passwordless";new CdkPasswordless(this, "myPasswordLess", {
mailSubject: "myStack - signIn", // subject of the mail arriving with code to confirm
userPoolClientName: "myClientName",
verifiedDomains: ["gmail.com"], // emails with the domains that are allow to signup
postConfirmationLambda: lambda.Function(...) // passing a lambda which will be triggered after code confirmation
});
```# note
There is a sample folder showing how to deploy a stack using this construct.
Additionally, There is a very simple Web Demo Client which shows how passwordless authentication can be done on the client side. It uses AWS Amplify.# License
MIT
# Useful commands
- `npm run build` compile typescript to js
- `npm run watch` watch for changes and compile