This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

hapi-fxa-oauth

3.0.0 • Public • Published

Hapi auth plugin for Firefox Accounts

This is a simple authentication plugin for Hapi applications to become Firefox Accounts OAuth service providers. It accepts FxA bearer tokens in the Authorization header, verifies them against the hosted FxA verifier, and sets the returned user data as the request credentials.

Enable it in your Hapi server configuration like so:

server.register({
  register: require('hapi-fxa-oauth')
})

Or customize things like so:

server.register({
  register: require('hapi-fxa-oauth'),
  options: {
    url: 'https://oauth-stable.dev.lcip.org', // FxA dev server
    keepAlive: false,                         // don't hold connections open
  }
})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i hapi-fxa-oauth

Weekly Downloads

0

Version

3.0.0

License

MPL-2.0

Unpacked Size

35.2 kB

Total Files

11

Last publish

Collaborators

  • dannycoates
  • philbooth
  • rfkelly
  • stomlinson
  • vbudhram
  • vladikoff