# loopback-component-passport

> LoopBack passport integration to support third party logins and account linking

Latest version **3.12.0** (published 2020-03-06) · Artistic-2.0 license · 0 weekly downloads

## Install

```sh
npm install loopback-component-passport
pnpm add loopback-component-passport
yarn add loopback-component-passport
bun add loopback-component-passport
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.12.0 |
| Published | 2020-03-06 |
| First published | 2014-07-01 |
| Weekly downloads | 0 |
| License | Artistic-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.9 |
| Dependencies | 4 |
| Unpacked size | 265.6 KB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 137 |
| Author | IBM Corp. |
| Maintainers | bajtos, dhmlau, emonddr, hacksparrow, jannyhou2016, rfeng, ritch, rmg |
| Keywords | StrongLoop, LoopBack, social, login, security |

## Links

- npm: https://www.npmjs.com/package/loopback-component-passport
- Repository: https://github.com/strongloop/loopback-component-passport
- Issues: https://github.com/strongloop/loopback-component-passport/issues
- npm.io page: https://npm.io/package/loopback-component-passport

## Dependencies (4)

- [uuid](https://npm.io/package/uuid.md) ^3.2.1
- [passport](https://npm.io/package/passport.md) ^0.4.0
- [underscore](https://npm.io/package/underscore.md) ^1.9.1
- [strong-globalize](https://npm.io/package/strong-globalize.md) ^4.1.1

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 3.12.0 (latest) — 2020-03-06
- 3.11.0 — 2019-05-30
- 3.10.0 — 2018-07-09
- 3.9.0 — 2018-06-20
- 3.8.1 — 2018-05-08
- 3.8.0 — 2018-03-31
- 3.7.0 — 2018-03-22
- 3.6.0 — 2018-03-13
- 3.5.0 — 2018-03-09
- 3.4.1 — 2017-08-21
- 3.4.0 — 2017-07-04
- 3.3.0 — 2017-04-26
- 3.2.0 — 2017-02-02
- 3.1.0 — 2017-01-17
- 3.0.0 — 2016-12-21
- … 17 more at https://npm.io/package/loopback-component-passport/versions

## README

# loopback-component-passport

**⚠️ LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical
security fixes will be provided. (See
[Module Long Term Support Policy](#module-long-term-support-policy) below.)**

We urge all LoopBack 3 users to migrate their applications to LoopBack 4 as
soon as possible. Refer to our
[Migration Guide](https://loopback.io/doc/en/lb4/migration-overview.html)
for more information on how to upgrade.

## Overview

The module provides integration between [LoopBack](http://loopback.io) and
[Passport](http://passportjs.org) to support third-party login and account
linking for LoopBack applications.

<img src="./ids_and_credentials.png" width="600px" />

> Please see the [official documentation](http://loopback.io/doc/en/lb3/Third-party-login-using-Passport.html) for more information.

## All local accounts requires verification

### All third party accounts will login with an email of `uniqueID@loopback.provider.com` example `123456@loopback.facebook.com`

which will allow the user to link the social media accounts that they want as well as the users could sign up with the same email account that is used for facebook/twitter/google/local if they wish to keep them separate.

Facebook profile information (such as email, gender, timezone, etc) may still be included if necessary. See
https://github.com/strongloop/loopback-example-passport/blob/master/README.md#4-facebook-profile-info.

All user required info including the email will be available, but the main email for the account will remain `uniqueID@loopback.facebook.com`.

## Module Long Term Support Policy

This module adopts the [
Module Long Term Support (LTS)](http://github.com/CloudNativeJS/ModuleLTS) policy,
 with the following End Of Life (EOL) dates:

| Version | Status          | Published | EOL      |
| ------- | --------------- | --------- | -------- |
| 3.x     | Maintenance LTS | Dec 2016  | Dec 2020 |

Learn more about our LTS plan in [docs](https://loopback.io/doc/en/contrib/Long-term-support.html).

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