New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hapi-auth-bearer-mw

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-auth-bearer-mw - npm Package Compare versions

Comparing version 1.3.4 to 2.0.1

10

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc