Giter VIP home page Giter VIP logo

awscognitodemo-webapp's Introduction

AWS Cognito Demo

Disclaimer: This code was not create to use on production environment, it is just for learning AWS Cognito.

Below are the steps that I executed to achieve all the functionalities. To see the code with everything working, you can see the branch Step3_CallAwsResources and you can see on branch Step4_PasswordLess the additional config for using passwordless authentication.

Here is the presentation with some more information:

AWS Amplify

This is a option that is very cool to learn in a future, because AWS amplify framework have a lot of features to comunicate with AWS Resources. Since this was not the objective of this repo I stopped with a very simple configuration.

Branch:amplify-basic-cli

Summary: Used the Amplify framework to do all the stuff, from code to AWS configuration.

AWS Cognito

Step 1

Branch: Step1_OnlyEmail

Summary: Used the master branch with code customization to add the cognito web log in page. Only email accepted

Step 2

Branch: Step2_AddSocialProviders

Summary: Used the SimpleTestEmailOnly as base to add google and facebook authentication. You can compare both branch and see that there aren`t any code changes. It is just a matter of doing some configuration on Cognito, Facebook and Google.

Step 3

Branch: Step3_CallAwsResources

Summary: Used the SimpleTestEmailFacebook as base to add more instructions and code changes on how to call APIs from the API Gateway in a secure way and how to call a S3 API exchanging the cognito token to a AWS STS token

awscognitodemo-webapp's People

Contributors

brunopenso avatar dependabot[bot] avatar

Watchers

James Cloos avatar  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.