Skip to content

Commit f1b1de1

Browse files
committed
hoek deps. Closes hapijs#2553. dynamic scope bug. Closes hapijs#2554
1 parent 5a2f8f6 commit f1b1de1

File tree

4 files changed

+124
-131
lines changed

4 files changed

+124
-131
lines changed

API.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2017,9 +2017,10 @@ following options:
20172017
- `scope` - the application scope required to access the route. Value can be a scope
20182018
string or an array of scope strings. The authenticated credentials object `scope`
20192019
property must contain at least one of the scopes defined to access the route.
2020-
You may also access properties on the request object to populate a dynamic scope
2021-
by using `{}` characters around the property name, such as `'user-{params.id}'`.
2022-
Set to `false` to remove scope requirements. Defaults to no scope required.
2020+
You may also access properties on the request object (`query` and `params`} to populate a
2021+
dynamic scope by using `{}` characters around the property name, such as
2022+
`'user-{params.id}'`. Set to `false` to remove scope requirements. Defaults to no scope
2023+
required.
20232024
- `entity` - the required authenticated entity type. If set, must match the `entity`
20242025
value of the authentication credentials. Available values:
20252026
- `any` - the authentication can be on behalf of a user or application. This is the

0 commit comments

Comments
 (0)