# passport-signature

> Signature authentication strategy for Passport.

Latest version **0.1.7** (published 2013-07-29) · 0 weekly downloads

## Install

```sh
npm install passport-signature
pnpm add passport-signature
yarn add passport-signature
bun add passport-signature
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.7 |
| Published | 2013-07-29 |
| First published | 2012-11-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.4.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Daniel Lochrie |
| Maintainers | dlochrie, baylorcollegeofmedicine |
| Keywords | passport, signature, auth, authn, authentication, identity |

## Links

- npm: https://www.npmjs.com/package/passport-signature
- Repository: https://github.com/dlochrie/passport-signature
- Issues: http://github.com/dlochrie/passport-signature/issues
- npm.io page: https://npm.io/package/passport-signature

## Dependencies (3)

- [cjson](https://npm.io/package/cjson.md) >=0.2.1
- [pkginfo](https://npm.io/package/pkginfo.md) 0.2.x
- [passport-oauth](https://npm.io/package/passport-oauth.md) ~0.1.2

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 0.1.7 (latest) — 2013-07-29
- 0.1.6 — 2013-07-23
- 0.1.5 — 2013-04-29
- 0.1.4 — 2013-04-29
- 0.1.3 — 2013-04-29
- 0.1.2 — 2013-02-07
- 0.1.1 — 2013-02-04
- 0.1.0 — 2013-01-31
- 0.0.4 — 2013-01-31
- 0.0.3 — 2013-01-30
- 0.0.2 — 2012-11-27
- 0.0.1 — 2012-11-17

## README

# Passport-Signature

## Usage
Add "passport-signature" to your `package.json` file. Then, `(sudo) npm install -l`.

## Config

Following thr Passport Strategy conventions, your settings should look like:

    // Signature Strategy
    passport.use(new SignatureStrategy({
      clientID: 'your-license',
      clientSecret: 'your-secret',
      callbackURL: 'http://your.app.com/auth/signature/return',
      providerURL: 'https://auth.signature.com/',
      profileURL: 'https://auth.signature.com/api/userinfo'
    }, function (token, tokenSecret, profile, done) {
      compound.models.User.findOrCreate({
        signatureId: profile.id,
        profile: profile
      }, function (err, user) {
        done(err, user);
      });
    }));

..etc.

## Notes
Tested against the `example` project in [this](https://github.com/jaredhanson/oauth2orize) OAUTH2 provider repo.

###Thanks 
[Jared Hanson](https://github.com/jaredhanson/)

###License 
MIT

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