Page Contents

Home > @loopback/authorization > AuthorizationMetadata

AuthorizationMetadata interface

Authorization metadata supplied via @authorize decorator

Signature:

export interface AuthorizationMetadata 

Properties

Property Type Description
allowedRoles string[] Roles that are allowed access
deniedRoles string[] Roles that are denied access
resource string Name of the resource, default to the method name
scopes string[] Define the access scopes
skip boolean A flag to skip authorization
voters (Authorizer | BindingAddress<Authorizer>)[] Voters that help make the authorization decision