Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Angular app with sign up, sign up confirm, sign in, MFA (SMS and TOTP Authenticator) using Cognito user pool authentication and google sign in. Additionally with a token refresh mechanism based on expired time of JWT.

Notifications You must be signed in to change notification settings

layanmoyura/cognito-sample-project

Repository files navigation

Angular Authentication App with AWS Cognito

This project is an Angular application that implements user authentication using AWS Cognito User Pools. It includes features such as sign up, sign up confirmation, log in, and multi-factor authentication (MFA) with both SMS and Time-based One-Time Password (TOTP) Authenticator.

Features

  • User Registration: New users can create an account.
  • User Confirmation: Users can confirm their account after registration.
  • User Login: Registered users can log in to the application.
  • MFA: Users can secure their accounts using multi-factor authentication. The application supports both SMS and TOTP Authenticator methods.(SMS MFA is implemented in SMS_MFA branch and TOTP in main branch)
  • Token Refresh: The application includes a mechanism to refresh tokens based on the expiry time of JSON Web Tokens (JWT).
  • MFA Toggle: Users have the option to enable or disable MFA for their accounts.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Node.js
  • Angular CLI
  • AWS Account

Installation

  1. Clone the repository.
  2. Install the dependencies using npm install.
  3. Configure your AWS credentials.
  4. Run the application using ng serve.

About

Angular app with sign up, sign up confirm, sign in, MFA (SMS and TOTP Authenticator) using Cognito user pool authentication and google sign in. Additionally with a token refresh mechanism based on expired time of JWT.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published