0.3.0 • Published 9 years ago

we-plugin-passport-bearer v0.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

We.js bearer token plugin

Authenticate with tokens, use for your single page app

Installation

With npm:

npm install we-plugin-passport-bearer

Configuration

we-plugin-passport-bearer is plug and play!

API

Post url to send user email and password to receive a valid token:

'post /auth/login-for-token': {
  controller    : 'passportToken',
  action        : 'loginForGetToken',
  responseType  : 'json'
}

Then send the token in Authorization header as Bearer token:

Àuthorization=Bearer [token string]

Links

License

MIT