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