Skip to content

Conversation

@vlaurin
Copy link
Contributor

@vlaurin vlaurin commented Jun 1, 2021

Resolves #114

This implementation is achieved by composing fine-grained modular functions to facilitate extensibility.
To facilitate use in standard scenarios a QuickCase-specific pre-configuration is provided.

Functions under the new oidc folder are not documented in the README as relevance outside of a QuickCase-owned project is unknown.

Copy link
Contributor

@gbenadikar gbenadikar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

vlaurin added 11 commits June 1, 2021 16:06
Converts an unverified access token into a valid authentication object
ExpressJS middleware extracting access token from request and converting it into valid authentication
Error handler returning a 401 response for ExpressJS
Validate and parse JWT access token to extract clientId and scopes
Parse fixed claims from JWT tokens into consistent object
Copy from `defaultUserInfoRetriever` to isolate from future breaking changes.
Given a map of claim names, extract and parse claims into a consistent object
Provides full, optionally prefixed claim names as configured.
Combine userInfo retrieval and extraction.
Config helper to merge default config with runtime overrides.
Helper converting config keys into camel case
vlaurin added 2 commits June 3, 2021 09:10
Aligned with QuickCase standard configuration for ease of use.
@vlaurin vlaurin merged commit 83e9ff9 into main Jun 3, 2021
@vlaurin vlaurin deleted the 114-node-oidc branch June 3, 2021 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement NodeJS equivalent of quickcase/spring-oidc

3 participants