Socket
Book a DemoInstallSign in
Socket

@articulate/hapi-authentic

Package Overview
Dependencies
Maintainers
30
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@articulate/hapi-authentic

A hapi 16.x JWT/Bearer auth plugin using [@articulate/authentic](https://github.com/articulate/authentic).

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
30
Created
Source

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()
    }
  })
})

Keywords

hapi

FAQs

Package last updated on 04 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts