All Projects → juhamust → Serverless Aws Cognito Login

juhamust / Serverless Aws Cognito Login

Simple example project with instructions how to implement serverless login using AWS Cognito.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Serverless Aws Cognito Login

Aws Serverless Auth Reference App
Serverless reference app and backend API, showcasing authentication and authorization patterns using Amazon Cognito, Amazon API Gateway, AWS Lambda, and AWS IAM.
Stars: ✭ 724 (+2684.62%)
Mutual labels:  aws, serverless, aws-cognito
Lambda Packages
Various popular python libraries, pre-compiled to be compatible with AWS Lambda
Stars: ✭ 713 (+2642.31%)
Mutual labels:  aws, serverless
Archive aws Lambda Go
A fast and clean way to execute Go on AWS Lambda.
Stars: ✭ 710 (+2630.77%)
Mutual labels:  aws, serverless
Dynamodb Toolbox
A simple set of tools for working with Amazon DynamoDB and the DocumentClient
Stars: ✭ 752 (+2792.31%)
Mutual labels:  aws, serverless
Serverless Typescript Starter
🗄🙅‍♀️ Deploy your next serverless JavaScript function in seconds
Stars: ✭ 653 (+2411.54%)
Mutual labels:  aws, serverless
Aws Cognito Angular Quickstart
An Angular(v5)-based QuickStart single-page app utilizing Amazon Cognito, S3, and DynamoDB (Serverless architecture)
Stars: ✭ 685 (+2534.62%)
Mutual labels:  aws, serverless
Dawson Cli
A serverless web framework for Node.js on AWS (CloudFormation, CloudFront, API Gateway, Lambda)
Stars: ✭ 721 (+2673.08%)
Mutual labels:  aws, serverless
Serverless Dynamodb Local
Serverless Dynamodb Local Plugin - Allows to run dynamodb locally for serverless
Stars: ✭ 530 (+1938.46%)
Mutual labels:  aws, serverless
Archive aws Lambda Go Shim
Author your AWS Lambda functions in Go, effectively.
Stars: ✭ 799 (+2973.08%)
Mutual labels:  aws, serverless
Serverless Plugin Warmup
Keep your lambdas warm during winter. ♨
Stars: ✭ 814 (+3030.77%)
Mutual labels:  aws, serverless
Aws Toolkit Vscode
AWS Toolkit for Visual Studio Code, an extension for working with AWS services including AWS Lambda.
Stars: ✭ 823 (+3065.38%)
Mutual labels:  aws, serverless
Aws Mobile React Sample
A React Starter App that displays how web developers can integrate their front end with AWS on the backend. The App interacts with AWS Cognito, API Gateway, Lambda and DynamoDB on the backend.
Stars: ✭ 650 (+2400%)
Mutual labels:  aws, serverless
Aws Sam Cli
CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM
Stars: ✭ 5,817 (+22273.08%)
Mutual labels:  aws, serverless
Conference App In A Box
Full stack & cross platform app customizable & themeable for any event or conference.
Stars: ✭ 693 (+2565.38%)
Mutual labels:  aws, serverless
Deep Framework
Full-stack JavaScript Framework for Cloud-Native Web Applications (perfect for Serverless use cases)
Stars: ✭ 533 (+1950%)
Mutual labels:  aws, serverless
Lambdalogs
A CLI tool to trace AWS Lambda calls over multiple CloudWatch log groups.
Stars: ✭ 18 (-30.77%)
Mutual labels:  aws, serverless
Webiny Js
Enterprise open-source serverless CMS. Includes a headless CMS, page builder, form builder and file manager. Easy to customize and expand. Deploys to AWS.
Stars: ✭ 4,869 (+18626.92%)
Mutual labels:  aws, serverless
Dazn Lambda Powertools
Powertools (logger, HTTP client, AWS clients, middlewares, patterns) for Lambda functions.
Stars: ✭ 501 (+1826.92%)
Mutual labels:  aws, serverless
Serverless Step Functions
AWS Step Functions plugin for Serverless Framework ⚡️
Stars: ✭ 758 (+2815.38%)
Mutual labels:  aws, serverless
Serverless Aws Lambda Node Postgres
Serverless AWS Lambda with Node.js,Postgres Rest API with Sequelize.
Stars: ✭ 18 (-30.77%)
Mutual labels:  aws, serverless

serverless-aws-cognito-login

Simple example project with instructions how to create serverless login using AWS Cognito.

Overview

These notes and snippets were created after spending too much time figuring out how to setup serverless authentication using AWS Cognito and Facebook login. Hope you find it useful!

Step: Facebook App

  1. Navigate to Facebook: https://developers.facebook.com/
  2. Create new app in My Apps
  3. Add Facebook Login in Products
  4. Collect Facebook app id and secret (needed later)
  5. Use specificed domain name in Valid OAuth redirect: https://servicex.auth.eu1.central1.1.amazoncognito.com/ (the part "servicex" you can name yourself, but it needs to match with the name used in AWS Congnito)

Step: AWS Cognito

  1. Login to AWS and navigate to Cognito service
  2. Create user pool in Cognito, say: servicex
  3. Collect Pool Id (needed later)
  4. Define domain in Open App integration > Domain name, say: servicex
  5. Navigate back to AWS Cognito
  6. Enable Facebook in Facebook in Federation > Identity providers
  7. Create client in App clients (no secret needed)
  8. Open App client settings
  9. Collect app id (needed later)
  10. Enable identity providers
  11. Define callback & sign out urls. Example: https://localhost:3000/
  12. Select Allowed OAuth Flows: Implicit grant
  13. Select Allowed Oauth Scopes: email, openid
  14. Create new identity pool in Cognito, say: servicex
  15. Open user pool and Edit identity pool
  16. Collect the identity pool id
  17. Create role for unauthenticated and authenticated (see policy examples)
  18. Select Authentication providers and set user Pool id and app client id

Step: Frontend App

  1. Install Node.js
  2. Clone this repository
  3. Install dependencies
  4. Edit .env and set values from above
  5. Start app
git clone https://github.com/juhamust/serverless-aws-cognito-login.git
cd serverless-aws-cognito-login
npm install
# NOTE: place values in .env!
cat .env
npm start
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].