# loopback-passport-custom-strategy-example

> Custom authentication strategy for Passport.

Latest version **1.0.1** (published 2018-08-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install loopback-passport-custom-strategy-example
pnpm add loopback-passport-custom-strategy-example
yarn add loopback-passport-custom-strategy-example
bun add loopback-passport-custom-strategy-example
```

## 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 | 1.0.1 |
| Published | 2018-08-21 |
| First published | 2018-08-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 1 |
| Unpacked size | 69.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Colton McInroy |
| Maintainers | discolton |

## Links

- npm: https://www.npmjs.com/package/loopback-passport-custom-strategy-example
- Repository: https://gitlab.com/DOSarrest/js/loopback-passport-custom-strategy-example
- npm.io page: https://npm.io/package/loopback-passport-custom-strategy-example

## Dependencies (1)

- [passport-strategy](https://npm.io/package/passport-strategy.md) ^1.0.0

## Recent versions

- 1.0.1 (latest) — 2018-08-21
- 1.0.0 — 2018-08-21

## README

# Loopback Passport Custom Strategy Example

This project provides an example of how to create a custom passport.js strategy for use with loopback.io.

This example is currently set up to send a HTTP request to a configured URL along with an access token to retrieve a user account.

## Providers.js Example
```json
{
    "custom-example": {
        "authScheme": "custom",
        "provider": "custom-example",
        "module": "loopback-passport-custom-strategy-example",
        "authPath": "/auth/example",
        "example": {
            "id": "123",
            "username": "example",
            "email": "example@email.com",
            "emailVerified": true
        },
        "authOptions": {
          "successRedirect": "/auth/success",
          "failureRedirect": "/auth/failure"
        },
        "passReqToVerify": true
    }
}
```

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