@articulate/hapi-authentic

0.0.4 • Public • Published

hapi-authentic

@articulate/hapi-authentic Build Status

A hapi 16.x JWT/Bearer auth plugin using @articulate/authentic.

Use

const Authentic = require('@articulate/hapi-authentic')
server.register(Authentic, err => {
  if (err) throw err
  server.auth.strategy('bearer', 'authentic', { issWhitelist: ['https://iss'] })
  server.route({
    method: 'GET',
    path: '/test',
    config: {
      auth: 'bearer',
      handler: (request, reply) =>
        reply()
    }
  })
})

Dependencies (3)

Dev Dependencies (6)

Package Sidebar

Install

npm i @articulate/hapi-authentic

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

8.38 kB

Total Files

6

Last publish

Collaborators

  • botzo