UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

62 lines (33 loc) 1.13 kB
--- lang: en title: 'API docs: authorization.enforcer' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/authorization permalink: /doc/en/lb4/apidocs.authorization.enforcer.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/authorization](./authorization.md) &gt; [Enforcer](./authorization.enforcer.md) ## Enforcer interface An enforcer of authorization policies **Signature:** ```typescript export interface Enforcer ``` ## Methods <table><thead><tr><th> Method </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> [buildRequest(authorizationContext)](./authorization.enforcer.buildrequest.md) </td><td markdown="1"> Extract the request from authorization context </td></tr> <tr><td markdown="1"> [enforce(request)](./authorization.enforcer.enforce.md) </td><td markdown="1"> Decide if the request can be granted access </td></tr> </tbody></table>