Home > @loopback/authorization
authorization package
A LoopBack 4 component for authorization support (Role based, Permission based, Vote based)
Remarks
To read on key building blocks read through LoopBack authorization docs
Classes
| Class | Description |
|---|---|
|
The custom error class that describes the error thrown by the authorization module. Should be extracted to the common layer shared by authentication and authorization. | |
Enumerations
| Enumeration | Description |
|---|---|
|
Decisions for authorization |
Functions
| Function | Description |
|---|---|
|
Decorator | |
|
Fetch authorization metadata stored by |
Interfaces
| Interface | Description |
|---|---|
|
Request context for authorization | |
|
Authorization metadata supplied via | |
|
Inspired by https://github.com/casbin/node-casbin | |
|
An enforcer of authorization policies |
Namespaces
| Namespace | Description |
|---|---|
|
Binding keys used by authorization component. | |
|
Binding tags used by authorization component | |
Variables
| Variable | Description |
|---|---|
|
Built-in roles | |
Type Aliases
| Type Alias | Description |
|---|---|
|
A function to decide if access to the target should be allowed or denied |