Comparing version 17.7.0 to 17.8.0
@@ -105,2 +105,27 @@ 'use strict'; | ||
async verify(request) { | ||
const auth = request.auth; | ||
if (auth.error) { | ||
throw auth.error; | ||
} | ||
if (!auth.isAuthenticated) { | ||
return; | ||
} | ||
if (auth.strategy === 'bypass') { | ||
return; | ||
} | ||
const strategy = this._strategies[auth.strategy]; | ||
if (!strategy.methods.verify) { | ||
return; | ||
} | ||
const bind = strategy.methods; | ||
await strategy.methods.verify.call(bind, auth); | ||
} | ||
static testAccess(request, route) { | ||
@@ -107,0 +132,0 @@ |
{ | ||
"version": "17.7.0", | ||
"version": "17.8.0", | ||
"name": "hapi", | ||
@@ -4,0 +4,0 @@ "lockfileVersion": 1, |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://hapijs.com", | ||
"version": "17.7.0", | ||
"version": "17.8.0", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -13,3 +13,3 @@ <img src="https://raw.github.com/hapijs/hapi/master/images/17.png" align="right"/> | ||
Development version: **17.7.x** ([release notes](https://github.com/hapijs/hapi/issues?labels=release+notes&page=1&state=closed)) | ||
Development version: **17.8.x** ([release notes](https://github.com/hapijs/hapi/issues?labels=release+notes&page=1&state=closed)) | ||
[![Linux Build Status](https://secure.travis-ci.org/hapijs/hapi.svg?branch=master)](https://travis-ci.org/hapijs/hapi) | ||
@@ -16,0 +16,0 @@ [![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/hapijs/hapi?branch=master&svg=true)](https://ci.appveyor.com/project/hueniverse/hapi) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
183542
4404