Skip to content

frickjack/little-authn

Repository files navigation

TL;DR

Open Id Connect client initially targeting AWS Cognito as an Identity Provider providing the @littleware/little-authn node package.

TOC

Login flow

Refer to the documentation for AWS Cognitoflow for an overview of the OIDC client login flow.

Authorization code flow

The @littleware/little-authn/commonjs/bin/oidcClient.js module provides methods for a service (as an OIDC client) to assist with the Authorization code flow, and establishing a user session with the application.

  • acquire a user token via the OIDC Authorization flow, issue the acquired identity token to the authenticating user's web client as a secure cookie
  • validate the identity token in a web client's cookie to authenticate user requests.

Implicit Flow

Lambda Integration

docker run --rm -v "$PWD":/var/task lambci/lambda:nodejs10.x lambda.lambdaHandler