node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey ยป

hapijs-oidc-jwks-strategy

HapiJS OIDC-JWKS authentication strategy for HapiJS

This plugin is based on https://github.com/PDMLab/express-oidc-jwks-verify middleware for expressJS.

Instalation:

npm install hapijs-oidc-jwks-strategy

Usage:

const oidcJwks = require('hapijs-oidc-jwks-strategy');

server.register(oidcJwks, { issuer : "<issuer base URL>"});

On your routes:

module.exports = {
    path : '...',
    ...
    config : {
        auth : 'oidc-jwks-strategy',,
    }
};