hapi-field-auth
Advanced tools
Comparing version 1.0.0-beta.4 to 1.0.0-beta.5
{ | ||
"name": "hapi-field-auth", | ||
"version": "1.0.0-beta.4", | ||
"version": "1.0.0-beta.5", | ||
"description": "Hapi plug-in for field-level authorization", | ||
@@ -36,6 +36,6 @@ "main": "src/index.js", | ||
"coveralls": "^3.0.2", | ||
"eslint": "^5.3.0", | ||
"eslint": "^5.4.0", | ||
"eslint-config-airbnb-base": "^13.1.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"eslint-plugin-promise": "^3.8.0", | ||
"eslint-plugin-promise": "^4.0.0", | ||
"eslint-plugin-should-promised": "^2.0.0", | ||
@@ -51,4 +51,4 @@ "hapi": "^17.5.3", | ||
"boom": "^7.2.0", | ||
"mustache": "^2.3.1" | ||
"mustache": "^2.3.2" | ||
} | ||
} |
@@ -63,4 +63,4 @@ # hapi-field-auth | ||
auth: { | ||
access: { | ||
scope: ['write', 'write.extended'], // allow both scopes | ||
access: { // route-level auth -> HTTP 401/403 | ||
scope: ['write', 'write.extended'], // multiple scopes on route-level | ||
}, | ||
@@ -74,3 +74,3 @@ }, | ||
fields: ['myProtectedField'], // request payload properties | ||
scope: ['write.extended'], // restrict to scope | ||
scope: ['write.extended'], // restricted scopes on field-level | ||
}], | ||
@@ -77,0 +77,0 @@ }, |
12358
Updatedmustache@^2.3.2