@littleware/little-authn

1.0.5 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @littleware/little-authn

Weekly Downloads

2

Version

1.0.5

License

ISC

Unpacked Size

56.4 kB

Total Files

36

Last publish

Collaborators

  • frickjack