Page Contents

Home > @loopback/authorization > authorize

authorize namespace


export declare namespace authorize 


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