@kenlo/passport-simple-oidc
v1.2.1
Published
A Passport Strategy for authenticating with OpenId-Connect using JWT
Downloads
58
Readme
Kenlo Passport Simple OIDC
Lib to validate jwt tokens generated by openid connect providers. This is compatible version with Keycloak.
Inspired by passport-identityserver3
Package Name: @kenlo/passport-simple-oidc
Installation
npm install @kenlo/passport-simple-oidc
PS: this module was build for being used by passport.js
Usage
const passport = require('passport');
const { Strategy } = require('@kenlo/passport-simple-oidc');
const settings = {
issuer: 'http://localhost:8080/auth/realms/kenlo-sso',
configuration_endpoint: 'http://localhost:8080/auth/realms/kenlo-sso/.well-known/openid-configuration',
scope: 'some-protected-scope',
};
const strategy = new Strategy('strategy-name', settings);
passport.use(strategy);
Contributing
- Edit file
- Commit (we use Angular Commit Messages format)
- DON'T PUSH, only use the
npm version X.Y.Z
command. This will create tags and push automatically for you.