Page Contents
Home > @loopback/authorization > AuthorizationMetadata
AuthorizationMetadata interface
Authorization metadata supplied via @authorize decorator
Signature:
export interface AuthorizationMetadata
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
|
string[] |
(Optional) Roles that are allowed access | ||
|
string[] |
(Optional) Roles that are denied access | ||
|
string |
(Optional) Name of the resource, default to the method name | ||
|
string[] |
(Optional) Define the access scopes | ||
|
boolean |
(Optional) A flag to skip authorization | ||
|
(Authorizer | BindingAddress<Authorizer>)[] |
(Optional) Voters that help make the authorization decision |