Page Contents
Home > @loopback/authorization > AuthorizationContext
AuthorizationContext interface
Request context for authorization
Signature:
export interface AuthorizationContext
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
|
Context for the invocation | |||
|
An array of principals identified for the request - it should come from authentication | |||
|
string |
An name for the target resource to be accessed, such as | ||
|
Role[] |
An array of roles for principals | ||
|
string[] |
An array of scopes representing granted permissions - usually come from access tokens |