Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hapi-auth-bearer-simple

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 1.1.4 to 1.1.5

2

lib/index.js

@@ -20,3 +20,3 @@ 'use strict';

if (!isValid) {
return reply(Boom.unauthorized('INVALID_AUHTORIZATION', 'bearerAuth', {
return reply(Boom.unauthorized('INVALID_AUTHORIZATION', 'bearerAuth', {
isValid: isValid,

@@ -23,0 +23,0 @@ credentials: credentials

{
"name": "hapi-auth-bearer-simple",
"description": "Custom authentication plugin for Hapi using Bearer tokens",
"version": "1.1.4",
"version": "1.1.5",
"author": "Adri Van Houdt <adri@salesflare.com>",
"private": false,
"main": "index.js",
"main": "lib/index.js",
"multiple": true,

@@ -9,0 +9,0 @@ "keywords": [

@@ -0,0 +0,0 @@ ![Build Status](https://travis-ci.org/Salesflare/hapi-auth-bearer-simple.svg?branch=master) ![](https://david-dm.org/salesflare/hapi-auth-bearer-simple.svg) ![](https://david-dm.org/salesflare/hapi-auth-bearer-simple/dev-status.svg) ![](https://david-dm.org/salesflare/hapi-auth-bearer-simple/peer-status.svg)

@@ -43,3 +43,3 @@ 'use strict';

server.auth.strategy('default', 'bearerAuth', true, {validateFunction: validFunc});
server.auth.strategy('default', 'bearerAuth', true, { validateFunction: validFunc });

@@ -58,3 +58,3 @@ server.route({

var request = {method: 'GET', url: '/login/testuser', headers: { Authorization: internals.authorizationHeader }};
var request = { method: 'GET', url: '/login/testuser', headers: { Authorization: internals.authorizationHeader } };

@@ -107,3 +107,3 @@ server.inject(request, function (res) {

var request = {method: 'GET', url: '/login/testuser', headers: { Authorization: internals.authorizationHeader }};
var request = { method: 'GET', url: '/login/testuser', headers: { Authorization: internals.authorizationHeader } };

@@ -136,3 +136,3 @@ server.inject(request, function (res) {

server.auth.strategy('default', 'bearerAuth', true, {validateFunction: validFunc});
server.auth.strategy('default', 'bearerAuth', true, { validateFunction: validFunc });

@@ -151,3 +151,3 @@ server.route({

var request = {method: 'GET', url: '/login/testuser', headers: { Authorization: internals.authorizationHeader }};
var request = { method: 'GET', url: '/login/testuser', headers: { Authorization: internals.authorizationHeader } };

@@ -180,3 +180,3 @@ server.inject(request, function (res) {

server.auth.strategy('default', 'bearerAuth', true, {validateFunction: validFunc});
server.auth.strategy('default', 'bearerAuth', true, { validateFunction: validFunc });

@@ -195,3 +195,3 @@ server.route({

var request = {method: 'GET', url: '/login/testuser', headers: { Authorization: internals.authorizationHeader }};
var request = { method: 'GET', url: '/login/testuser', headers: { Authorization: internals.authorizationHeader } };

@@ -224,3 +224,3 @@ server.inject(request, function (res) {

server.auth.strategy('default', 'bearerAuth', true, {validateFunction: validFunc});
server.auth.strategy('default', 'bearerAuth', true, { validateFunction: validFunc });

@@ -239,3 +239,3 @@ server.route({

var request = {method: 'GET', url: '/login/testuser', headers: { Authorization: internals.authorizationHeader }};
var request = { method: 'GET', url: '/login/testuser', headers: { Authorization: internals.authorizationHeader } };

@@ -268,3 +268,3 @@ server.inject(request, function (res) {

server.auth.strategy('default', 'bearerAuth', true, {validateFunction: validFunc});
server.auth.strategy('default', 'bearerAuth', true, { validateFunction: validFunc });

@@ -283,3 +283,3 @@ server.route({

var request = {method: 'GET', url: '/login/testuser'};
var request = { method: 'GET', url: '/login/testuser' };

@@ -312,3 +312,3 @@ server.inject(request, function (res) {

server.auth.strategy('default', 'bearerAuth', true, {validateFunction: validFunc});
server.auth.strategy('default', 'bearerAuth', true, { validateFunction: validFunc });

@@ -327,3 +327,3 @@ server.route({

var request = {method: 'GET', url: '/login/testuser', headers: { Authorization: undefined }};
var request = { method: 'GET', url: '/login/testuser', headers: { Authorization: undefined } };

@@ -356,3 +356,3 @@ server.inject(request, function (res) {

server.auth.strategy('default', 'bearerAuth', true, {validateFunction: validFunc});
server.auth.strategy('default', 'bearerAuth', true, { validateFunction: validFunc });

@@ -371,3 +371,3 @@ server.route({

var request = {method: 'GET', url: '/login/testuser', headers: { Authorization: internals.invalidAuhtorizationHeader }};
var request = { method: 'GET', url: '/login/testuser', headers: { Authorization: internals.invalidAuhtorizationHeader } };

@@ -374,0 +374,0 @@ server.inject(request, function (res) {

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