2.1.0-alpha.1 • Published 22 days ago

@natlibfi/passport-keycloak v2.1.0-alpha.1

Weekly downloads
-
License
MIT
Repository
github
Last release
22 days ago

Passport strategy for Keycloak JWT

Passport strategy for Keycloak JWT. This module has the following features:

  • Written in modern day Javascript/ECMAscript
  • Supports HTTP Bearer authentication using Keycloak JWT as bearer tokens
  • Verifies token locally (i.e. does not use network calls to introspect endpoint, public keys are fetched from jwks endpoint and cached after first use)

Strategies

This module provides the following Passport strategies.

Bearer

HTTP Bearer authentication works by using the token generated after signing in to Keycloak for gaining access to the defined resources.

Does not allow configuration for ignoring token expiration.

Usage

ES modules

import {KeycloakStrategy} from '@natlibfi/passport-keycloak'

Configuration

Configuration of the strategy needs to be passed to the class constructor as object.

  • algorithms (required): Algorithm for decoding jwt
  • audience (required): Audience of jwt
  • issuer (required): Issuer of jwt
  • jwksUrl (required): JWKS url to fetch public keys from

License and copyright

Copyright (c) 2023 University Of Helsinki (The National Library Of Finland)

This project's source code is licensed under the terms of MIT license

2.1.0-alpha.1

22 days ago

2.0.7

1 month ago

2.0.6

3 months ago

2.0.5

4 months ago

2.0.5-alpha.2

4 months ago

2.0.5-alpha.1

4 months ago

2.0.4-alpha.3

5 months ago

2.0.4-alpha.2

5 months ago

2.0.3-alpha.3

7 months ago

2.0.3-alpha.2

8 months ago

2.0.3-alpha.1

9 months ago

2.0.2

9 months ago

2.0.0-alpha.1

10 months ago

2.0.3-alpha.6

6 months ago

2.0.3-alpha.5

6 months ago

2.0.1

10 months ago

2.0.3-alpha.4

7 months ago

2.0.2-alpha.1

9 months ago

2.0.0

10 months ago

1.0.0

12 months ago