Basic authorizer.
Description
The BasicAuthorizer provides two methods: one to grant access to everyone and another to grant access to authorized users.
Instance methods
anybody
Allows everyone access, even unauthorized users.
public
anybody(): (req: any, res: any, next: () => void) => void
- returns: (req: any, res: any, next: () => void) => void - returns anybody handler.
signed
Access is granted only to authorized users.
Throws UnauthorizedException exception if not authorized.
public
signed(): (req: any, res: any, next: () => void) => void
- returns: (req: any, res: any, next: () => void) => void - returns sign handler.