Closed franciscogouveia closed 8 years ago
The following words are prefixes that can be used for matching information:
credentials
- Information from request.auth.credentials
object. Information in this object depends on your authentication implementation.connection
- Connection information, from request.info
, as documented in hapi:
connection:host
- Content of the HTTP 'Host' header (e.g. 'example.com:8080').connection:hostname
- The hostname part of the 'Host' header (e.g. 'example.com').connection:received
- Request reception timestamp.connection:referrer
- Content of the HTTP 'Referrer' (or 'Referer') header.connection:remoteAddress
- Remote client IP address.connection:remotePort
- Remote client port.query
- Query parameters, as in request.query
.param
- URL parameters, as in request.params
.request
- Other request information:
request:path
- Requested path.request.method
- Requested method (e.g. post
).
At the moment, it is only possible to evaluate a target based on credentials.
It would be cool to be able to evaluate also based on request information, such as remote address or domain.