Cognito - Sign-in

Card Puncher Data Processing

About

The sign-in state

After users have a confirmed account, they will be able to sign in:

  • They gives their username (or email) and password.
  • On internet,:
    • a JavaScript function then communicates with Amazon Cognito, authenticates using the Secure Remote Password protocol (SRP), and receives back a set of JSON Web Tokens (JWT).
    • The JWTs contain claims about the identity of the user
    • The JWT is used to authenticate against the RESTful API (build with Amazon API Gateway)

Implementation

Aws provides several implementation, one by library.

Amplify is the reference one.

Amplify

A sign-in with the the javascript amplify sdk after installation and configuration

import Auth from '@aws-amplify/auth';

Auth.signIn(username, password)
  .then(success => console.log('successful sign in'))
  .catch(err => console.log(err));

Js Identity

See sign-in

Js Auth

The javascript auth library, see sign-in

The sign in form uses the cognito sign-in javascript.

Cognito Js Auth Sign In

Redirect

For Sign in Redirect URI(s) inputs, you can put one URI for local development and one for production. Example: http://localhost:3000/ in dev and https://www.example.com/ in production.





Discover More
Card Puncher Data Processing
Aws - Cognito

IAM (Identity Access Management) in Aws Account management where: user pool is a user directory service to handle: user registration, authentication, and account recovery. identity...
Card Puncher Data Processing
Cognito - Amplify Auth Component

Auth is a sub-component (called a category) of the amplify library and is a wrapper around amazon-cognito-identity-js All methods are available in the Auth...
Card Puncher Data Processing
Cognito - Authentication state (Lifecycle)

in Cognito authState is the current authentication state (a string): signIn for signUp for for confirmSignIn confirmSignUp forgotPassword verifyContact for signedIn when signedIn
Card Puncher Data Processing
Cognito - Javascript Identity Sdk (amazon-cognito-identity-js)

The Cognito Javascript Sdk is one of the Cognito Sdk amplify SDK the auth amplify library Before: aws/amazon-cognito-identity-js. After: aws-amplify/amplify-js/tree/master/packages/amazon-cognito-identity-js...
Cognito Js Auth App Client Settings
Cognito - Js Auth Sdk

This page is the Cognito Javascript Auth SDK (Amazon Cognito Auth SDK) It leverages the built-in hosted UI webpages: , , , multi-factor authentication...
Card Puncher Data Processing
Cognito - UI

UI forms in Cognito To reduce the operational overhead of creating and maintaining forms and custom logic for authentication, Cognito has a hosted-UI that leverages pages for: sign-up, sign-in,...
Public Key Crypto Pair Key Creation
Public Key Authentication

Public key authentication is a asymmetric authentication method where the public keys are used as authentication credential for: automated processes implementing for instance single sign-on The...



Share this page:
Follow us:
Task Runner