Page Contents

Home > @loopback/authorization > authorize

authorize namespace

Signature:

export declare namespace authorize 

Functions

Function Description
allow(roles) Shortcut to configure allowed roles
allowAll() Allows all
allowAllExcept(roles) Allow all but the given roles
allowAuthenticated() Allow authenticated users
deny(roles) Shortcut to configure denied roles
denyAll() Deny all
denyAllExcept(roles) Deny all but the given roles
denyUnauthenticated() Deny unauthenticated users
scope(scopes) Shortcut to specify access scopes
skip() Skip authorization
vote(voters) Shortcut to configure voters