All Projects → dbroadhurst → aws-cognito-react

dbroadhurst / aws-cognito-react

Licence: MIT license
AWS Cognito React boilerplate / reference implementation

Programming Languages

typescript
32286 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to aws-cognito-react

effective-invention
High quality coded Discord account with it's own Anti-Captcha API and has Mail API Implemented
Stars: ✭ 59 (-72.04%)
Mutual labels:  account
welcome-to-the-state-machine-demos
Demos and sample for my "Welcome to the (state) machine" talk
Stars: ✭ 17 (-91.94%)
Mutual labels:  sagas
wp-user-activity
The best way to log activity in WordPress
Stars: ✭ 40 (-81.04%)
Mutual labels:  users
ethereumjs-account
Project is in active development and has been moved to the EthereumJS VM monorepo.
Stars: ✭ 45 (-78.67%)
Mutual labels:  account
sargeras
基于Saga思想解决长事务(LLT,Long-Live-Transaction)的框架
Stars: ✭ 22 (-89.57%)
Mutual labels:  sagas
teamwork
User to Team associations with invitation system for the Laravel Framework
Stars: ✭ 37 (-82.46%)
Mutual labels:  users
mubapp
MUB is a multi-user blog web app using the Python-Django infrastructure.
Stars: ✭ 24 (-88.63%)
Mutual labels:  users
next-redux-saga-boilerplate
Next/Redux/Saga boilerplate - Example of using Next.js 9 with Redux Saga
Stars: ✭ 13 (-93.84%)
Mutual labels:  sagas
gozeit
GoZeit
Stars: ✭ 19 (-91%)
Mutual labels:  cognito
aws-amplify-react-custom-ui
Building a Custom UI Authentication For AWS Amplify
Stars: ✭ 21 (-90.05%)
Mutual labels:  cognito
craft-delete-account
Allows users to delete their own account within Twig templates
Stars: ✭ 12 (-94.31%)
Mutual labels:  account
edat
Event-driven architecture toolkit
Stars: ✭ 27 (-87.2%)
Mutual labels:  sagas
JWT-user-auth-API-bolilerplate
Boilerplate for backend API user authentication with JWT
Stars: ✭ 13 (-93.84%)
Mutual labels:  users
amplify-material-ui
A Material-UI based implementation of aws amplify
Stars: ✭ 32 (-84.83%)
Mutual labels:  cognito
saga-monitor
Simple, elegant, and configurable redux-saga monitor
Stars: ✭ 37 (-82.46%)
Mutual labels:  sagas
react-phoenix-users-boilerplate
Elixir/Phoenix + React + users template/boilerplate.
Stars: ✭ 71 (-66.35%)
Mutual labels:  users
aws-mobilehub-helper-ios
ARCHIVED: Use https://github.com/aws/aws-sdk-ios/
Stars: ✭ 41 (-80.57%)
Mutual labels:  cognito
ftgogo
FTGOGO - event-driven architecture demonstration application using edat
Stars: ✭ 82 (-61.14%)
Mutual labels:  sagas
fastapi-users
Ready-to-use and customizable users management for FastAPI
Stars: ✭ 1,920 (+809.95%)
Mutual labels:  users
cognitojwt
Decode and verify Amazon Cognito JWT tokens
Stars: ✭ 50 (-76.3%)
Mutual labels:  cognito

aws-cognito-react - v2

signin

If you are looking for v1 version it can be found on the legacy branch. With the release of v2, v1 is no longer supported

Reference implementation / boilerplate for AWS Cognito user management

Demo

aws-cognito-react-demo

v2 Changes

  • Switched to Typescript
  • Replaced redux and saga's with react context
  • Upgraded all libraries to latest major versions
  • No security scan issues
  • Hooks used to manage states
  • Updated to Material UI 4x
  • Added AWS CDK to manage infrastructure
  • Cleaner and simpler Architecture
  • Responsive design

AWS Cognito Infrastructure setup

To help deploy the AWS Cognito infrastructure I've create an Amazon Cloud Development (CDK) script

CDK set up instructions can be found here

CDK deploy instructions

cd cdk
npm run cdk bootstrap   # only needed first time
npm run cdk deploy

After deployment copy the userPoolId and userPoolClientId values from the command line window; you will need these values in the app config step

App Configuration

Setup the Cognito environment values buy creating app/.env.local file and adding the following

REACT_APP_USERPOOL_ID=YOUR_USER_POOL_ID
REACT_APP_CLIENT_ID=YOUR_CLIENT_ID

Create React App has been used to setup the development process so the next steps should be familiar

cd app
npm install
npm start

Other Solutions

Firebase Auth - Great for mobile and web. Fairly limited but easy to use. Integrates really nicely with other Firebase services

Auth0 - Comes with comprehensive and feature rich frontend. Seems to quicky get expensive but a very safe option

Keycloak - Excellent feature rich Enterprise service that offers fully themable frontend. No Cloud solution but easy to deploy to AWS using this CDK script

Useful References

https://www.npmjs.com/package/amazon-cognito-identity-js

https://docs.aws.amazon.com/cdk/api/latest/docs/aws-cognito-readme.html

https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-social-idp.html

https://docs.aws.amazon.com/cdk/latest/guide/getting_started.html

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].