Code Monkey home page Code Monkey logo

cognito_passwordless_auth's Introduction

๐Ÿ” Amazon Cognito Passwordless Authenticator

Twitter

Table of Contents
  1. About The Project
  2. Getting Started
  3. License

About The Project

This project contains a passwordless authenticator app that was built using Amazon Cognito. Cognito provides the ability to define a custom auth flow. The auth flow process of the application uses one-time login codes that are sent via email. There are many benefits of using a one-time login codes such as :

  • Prevents identity theft by making sure that a captured username/password pair cannot be used a second time
  • Users do not need to worry about remembering their passwords

(back to top)

Architecture

Architecture

(back to top)

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Prerequisites

  1. Install the serverless framework CLI via NPM:
npm install -g serverless
  1. Install Amplify CLI via NPM:
npm install -g @aws-amplify/cli

Installation

The below steps explains how to install and set up the application.

  1. Clone the repo
    git clone https://github.com/gjyoungjr/cognito_passwordless_auth
  2. Install NPM packages
    npm install
  3. Enter your AWS Access Key ID and Secret Access Key in an env file .env
     AWS_ACCESS_KEY_ID=<ACCESS_KEY_ID>
     AWS_SECRET_ACCESS_KEY=<SECRET_ACCESS_KEY>
  4. Navigate to the web app directory
    cd web-app/authenticator
  5. Initialize Amplify and enter your AWS Credentials (AWS Access Key ID & Secret Access Key). You can follow this guide to get more details regarding setting up Amplify.
    amplify init

Deploy

  1. Deploy Stack to AWS
    npm run deploy 

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

cognito_passwordless_auth's People

Contributors

gjyoungjr avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.