security package
Common types/interfaces for LoopBack 4 security including authentication and authorization.
Remarks
- Subject - It’s the “who” for security - contains a set of Principles, a set of Credentials, and a set of Permissions - Principle - Represent a user, an application, or a device - Credential - Security attributes used to authenticate the subject. Such credentials include passwords, Kerberos tickets, and public key certificates. - Permission - It’s the what for security.
Classes
| Class | Description |
|---|---|
|
Default implementation of | |
|
There are three levels of permissions
| |
Interfaces
| Interface | Description |
|---|---|
|
Security attributes used to authenticate the subject. Such credentials include passwords, Kerberos tickets, and public key certificates. | |
|
Represent a user, an application, or a device | |
|
oAuth 2.0 scope | |
|
Such operations include: - authentication (login) - authorization (access control) - session access - logout | |
|
The minimum set of attributes that describe a user. |
Namespaces
| Namespace | Description |
|---|---|
|
Binding keys for security related metadata |
Variables
| Variable | Description |
|---|---|
|
A symbol for stringified id of security related objects |