Page Contents
Home > @loopback/authorization > Enforcer
Enforcer interface
An enforcer of authorization policies
Signature:
export interface Enforcer
Methods
| Method | Description |
|---|---|
| [buildRequest(authorizationContext)](/doc/en/lb4/apidocs.authorization.enforcer.buildrequest.html) | Extract the request from authorization context |
| [enforce(request)](/doc/en/lb4/apidocs.authorization.enforcer.enforce.html) | Decide if the request can be granted access |