hapi-auth-bearer-mw
Advanced tools
Comparing version 1.3.4 to 2.0.1
@@ -12,3 +12,3 @@ (function() { | ||
module.exports.register = function(plugin, options, cb) { | ||
module.exports.register = function(server, options, cb) { | ||
if (options == null) { | ||
@@ -25,5 +25,5 @@ options = {}; | ||
Hoek.assert(internals._tenantId, 'Missing required _tenantId property in hapi-auth-bearer-mw configuration'); | ||
internals.hapiOauthStoreMultiTenant = plugin.plugins['hapi-oauth-store-multi-tenant']; | ||
internals.hapiOauthStoreMultiTenant = server.plugins['hapi-oauth-store-multi-tenant']; | ||
Hoek.assert(internals.hapiOauthStoreMultiTenant, "Could not access oauth store. Make sure 'hapi-oauth-store-multi-tenant' is loaded as a plugin."); | ||
internals.hapiUserStoreMultiTenant = plugin.plugins['hapi-user-store-multi-tenant']; | ||
internals.hapiUserStoreMultiTenant = server.plugins['hapi-user-store-multi-tenant']; | ||
Hoek.assert(internals.hapiUserStoreMultiTenant, "Could not access user store. Make sure 'hapi-oauth-store-multi-tenant' is loaded as a plugin."); | ||
@@ -40,3 +40,3 @@ internals.oauthAuth = function() { | ||
Hoek.assert(_.isFunction(internals.users, "No users accessible.")); | ||
plugin.auth.scheme('hapi-auth-bearer-mw', internals.bearer); | ||
server.auth.scheme('hapi-auth-bearer-mw', internals.bearer); | ||
return cb(); | ||
@@ -144,3 +144,3 @@ }; | ||
} | ||
return reply(null, { | ||
return reply["continue"]({ | ||
credentials: credentials | ||
@@ -147,0 +147,0 @@ }); |
{ | ||
"name": "hapi-auth-bearer-mw", | ||
"version": "1.3.4", | ||
"version": "2.0.1", | ||
"private": false, | ||
@@ -15,8 +15,8 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"hoek": ">=2.4.1", | ||
"boom": ">=2.5.1", | ||
"underscore": ">=1.7.0" | ||
"hoek": "2.10.0", | ||
"boom": "2.6.1", | ||
"underscore": "1.7.0" | ||
}, | ||
"peerDependencies": { | ||
"hapi": ">=6.5.0 <8" | ||
"hapi": ">=8.0.0" | ||
}, | ||
@@ -27,20 +27,20 @@ "devDependencies": { | ||
"codo": "2.0.9", | ||
"coffee-script": "1.7.1", | ||
"coffee-script": "1.8.0", | ||
"grunt": "0.4.5", | ||
"grunt-cli": "0.1.13", | ||
"grunt-contrib-coffee": "0.11.0", | ||
"grunt-contrib-coffee": "0.12.0", | ||
"grunt-contrib-watch": "0.6.1", | ||
"grunt-codo": "0.2.0", | ||
"grunt-env": "0.4.1", | ||
"grunt-env": "0.4.2", | ||
"grunt-mocha-cov": "0.3.0", | ||
"grunt-mocha-test": "0.11.0", | ||
"grunt-release": "0.7.0", | ||
"grunt-shell": "0.7.0", | ||
"hapi": "6.5.1", | ||
"hapi-user-store-multi-tenant": "1.0.x", | ||
"hapi-oauth-store-multi-tenant": "1.0.x", | ||
"grunt-mocha-test": "0.12.4", | ||
"grunt-release": "0.9.0", | ||
"grunt-shell": "1.1.1", | ||
"hapi": "8.0.0", | ||
"hapi-user-store-multi-tenant": "2.0.1", | ||
"hapi-oauth-store-multi-tenant": "2.0.1", | ||
"matchdep": "0.3.0", | ||
"mocha": "1.21.4", | ||
"mongoose": "3.8.14", | ||
"should": "4.0.4" | ||
"mocha": "2.1.0", | ||
"mongoose": "3.8.21", | ||
"should": "4.4.2" | ||
}, | ||
@@ -47,0 +47,0 @@ "config": { |
@@ -7,4 +7,3 @@ [![Build Status](https://travis-ci.org/codedoctor/hapi-auth-bearer-mw.svg?branch=master)](https://travis-ci.org/codedoctor/hapi-auth-bearer-mw) | ||
[![Issues](http://img.shields.io/github/issues/codedoctor/.svg)](https://github.com/codedoctor/hapi-auth-bearer-mw/issues) | ||
[![HAPI 6.0](http://img.shields.io/badge/hapi-6.0-blue.svg)](http://hapijs.com) | ||
[![HAPI 7.0](http://img.shields.io/badge/hapi-7.0-blue.svg)](http://hapijs.com) | ||
[![HAPI 8.0](http://img.shields.io/badge/hapi-8.0-blue.svg)](http://hapijs.com) | ||
[![API Documentation](http://img.shields.io/badge/API-Documentation-ff69b4.svg)](http://coffeedoc.info/github/codedoctor/hapi-auth-bearer-mw) | ||
@@ -11,0 +10,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
405684
61
+ Addedaccept@3.1.3(transitive)
+ Addedammo@3.0.3(transitive)
+ Addedb64@4.1.2(transitive)
+ Addedboom@2.6.1(transitive)
+ Addedbounce@1.2.3(transitive)
+ Addedbourne@1.3.3(transitive)
+ Addedcall@5.0.3(transitive)
+ Addedcatbox@10.0.6(transitive)
+ Addedcatbox-memory@4.0.1(transitive)
+ Addedcontent@4.0.6(transitive)
+ Addedcryptiles@4.1.3(transitive)
+ Addedhapi@18.1.0(transitive)
+ Addedheavy@6.1.2(transitive)
+ Addedhoek@2.10.0(transitive)
+ Addediron@5.0.6(transitive)
+ Addedisemail@3.2.0(transitive)
+ Addedjoi@14.3.1(transitive)
+ Addedmimos@4.0.2(transitive)
+ Addednigel@3.0.4(transitive)
+ Addedpez@4.0.5(transitive)
+ Addedpodium@3.2.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedshot@4.0.7(transitive)
+ Addedsomever@2.0.0(transitive)
+ Addedstatehood@6.0.9(transitive)
+ Addedsubtext@6.0.12(transitive)
+ Addedteamwork@3.2.0(transitive)
+ Addedtopo@3.0.3(transitive)
+ Addedunderscore@1.7.0(transitive)
+ Addedvise@3.0.2(transitive)
+ Addedwreck@14.2.0(transitive)
- Removedaccept@1.1.0(transitive)
- Removedb64@2.0.1(transitive)
- Removedboom@2.10.1(transitive)
- Removedbossy@1.0.3(transitive)
- Removedcall@1.0.0(transitive)
- Removedcatbox@4.3.0(transitive)
- Removedcatbox-memory@1.1.2(transitive)
- Removedcontent@1.0.2(transitive)
- Removedcryptiles@2.0.5(transitive)
- Removedglue@1.0.0(transitive)
- Removedh2o2@2.0.1(transitive)
- Removedhapi@7.5.3(transitive)
- Removedheavy@1.0.0(transitive)
- Removedhoek@2.16.3(transitive)
- Removedinert@1.1.1(transitive)
- Removediron@2.1.3(transitive)
- Removedisemail@1.2.0(transitive)
- Removeditems@1.1.1(transitive)
- Removedjoi@4.9.06.10.1(transitive)
- Removedkilt@1.1.1(transitive)
- Removedlru-cache@2.5.2(transitive)
- Removedmimos@1.0.1(transitive)
- Removedmoment@2.30.1(transitive)
- Removednigel@1.0.1(transitive)
- Removedpez@1.0.0(transitive)
- Removedqs@2.4.24.0.0(transitive)
- Removedrejoice@1.0.0(transitive)
- Removedshot@1.7.0(transitive)
- Removedstatehood@1.2.0(transitive)
- Removedsubtext@1.1.1(transitive)
- Removedtopo@1.1.0(transitive)
- Removedunderscore@1.13.7(transitive)
- Removedvise@1.0.0(transitive)
- Removedvision@1.2.2(transitive)
- Removedwreck@5.6.16.3.0(transitive)
Updatedboom@2.6.1
Updatedhoek@2.10.0
Updatedunderscore@1.7.0