# passport-w3auth

> small library for easily connecting to w3 authorization services

Latest version **0.0.8** (published 2014-09-23) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2014-09-23 |
| First published | 2014-09-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Author | Kevin DeLand |
| Maintainers | kmdeland |
| Keywords | passport |

## Links

- npm: https://www.npmjs.com/package/passport-w3auth
- Repository: git@github.rtp.raleigh.ibm.com:kmdeland-us/passport-w3auth
- npm.io page: https://npm.io/package/passport-w3auth

## Dependencies (4)

- [ldapjs](https://npm.io/package/ldapjs.md) 0.7.1
- [request](https://npm.io/package/request.md) ^2.40.0
- [passport](https://npm.io/package/passport.md) 0.2.1
- [basic-auth](https://npm.io/package/basic-auth.md) 1.0.0

## 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.0.8 (latest) — 2014-09-23
- 0.0.7 — 2014-09-23
- 0.0.6 — 2014-09-23
- 0.0.5 — 2014-09-16
- 0.0.4 — 2014-09-12
- 0.0.3 — 2014-09-04
- 0.0.2 — 2014-09-04
- 0.0.1 — 2014-09-02

## README

W3 Authoritzation library
=========================

Used to authenticate using a w3 authorization API

## Installation

   npm install passport-w3auth --save
   
## Enabling Group Authentication in Express 4

   app.js
   ```javascript
   // import BlueAuth
   var BlueAuth = require('passport-w3auth');
   var myAuth = BlueAuth.buildAuth({
       api: 'group_api_url'
       admin: 'admin_group_name'
       superuser: 'superuser_group_name'
   });

   // add to express router
   var router = express.Router();
   router.use(myAuth);
   ```

## Using Passport


   app.js
   ```javascript 
   // Include in your dependencies list
   var passport = require('passport')
     , W3AuthStrategy = require('passport-w3auth').W3AuthStrategy;


   var config = require(__dirname + '/conf/config')
   var api = config.w3auth.url
   passport.use(new W3AuthStrategy());
   ```


   config/config.js
   ```javascript
   var config = {
       w3auth: {
       	       url: ${url}
       }
   }

   module.exports = {
       config: config
   };
   ```


## Using API

   Under construction

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