# hapi-fxa-oauth

> A simple authentication plugin for Hapi applications to become Firefox Accounts OAuth service providers

Latest version **3.0.0** (published 2018-06-27) · MPL-2.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install hapi-fxa-oauth
pnpm add hapi-fxa-oauth
yarn add hapi-fxa-oauth
bun add hapi-fxa-oauth
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2018-06-27 |
| First published | 2014-10-23 |
| Weekly downloads | 0 |
| License | MPL-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 34.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mozilla |
| Maintainers | dannycoates, philbooth, rfkelly, stomlinson, vbudhram, vladikoff |

## Links

- npm: https://www.npmjs.com/package/hapi-fxa-oauth
- Repository: https://github.com/mozilla/hapi-fxa-oauth
- Homepage: https://github.com/mozilla/hapi-fxa-oauth#readme
- Issues: https://github.com/mozilla/hapi-fxa-oauth/issues
- npm.io page: https://npm.io/package/hapi-fxa-oauth

## Dependencies (2)

- [boom](https://npm.io/package/boom.md) 7.2.0
- [poolee](https://npm.io/package/poolee.md) 1.0.1

## Recent versions

- 3.0.0 (latest) — 2018-06-27
- 2.2.0 — 2015-11-12
- 2.1.0 — 2015-10-30
- 2.0.1 — 2015-01-06
- 2.0.0 — 2014-12-29
- 1.0.0 — 2014-10-23

## README

Hapi auth plugin for Firefox Accounts
=====================================

This is a simple authentication plugin for Hapi applications to become
[Firefox Accounts OAuth](https://developer.mozilla.org/en-US/docs/Mozilla/Tech/Firefox_Accounts/Introduction#Firefox_Accounts_OAuth_2.0_API)
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
      }
    })

---
_Source: https://npm.io/package/hapi-fxa-oauth · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
