express-meshblu-auth-device
Express middleware for all meshblu auth styles for a singular device
Last updated 4 years ago by octoblu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install express-meshblu-auth-device 
SYNC missed versions from official npm registry.

Express Meshblu Device Authentication Middleware

Express middleware to support all meshblu auth styles for a singular device

Build Status Code Climate Test Coverage npm version Gitter

Supported Auth Methods

  • cookies: request.cookies.meshblu_auth_uuid and request.cookies.meshblu_auth_token
  • headers: request.cookies.meshblu_auth_uuid and request.cookies.meshblu_auth_token
  • basic: Authorization: Basic c3VwZXItcGluazpwaW5raXNoLXB1cnBsZWlzaAo=
  • bearer: Authorization: Bearer c3VwZXItcGluazpwaW5raXNoLXB1cnBsZWlzaAo=

Example:

var express = require('express');
var meshbluAuthDevice = require('express-meshblu-auth-device');
var app = express();

app.use(meshbluAuthDevice(
  uuid: '340d1779-300c-45cd-b133-2f316df8097a'
  server: 'meshblu.octoblu.com',
  port: 443,
  protocol: 'https'
));
app.use(function (request, response) {
  response.json({uuid: request.meshbluAuth.uuid, token: request.meshbluAuth.token});
});
app.listen(3333);

Current Tags

  • 1.3.1                                ...           latest (4 years ago)

6 Versions

  • 1.3.1                                ...           4 years ago
  • 1.3.0                                ...           4 years ago
  • 1.2.0                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (7)

Copyright 2014 - 2016 © taobao.org |