AuthorizeOptions
Defined in: src/server/http.ts:209
Options for authorize.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
Action extends string |
Resource |
Grant |
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
authorization |
AuthorizationProvider<Action, Resource> |
The host’s provider, consulted for host-authenticated principals only. | src/server/http.ts:211 |
scope? |
(grant, action, resource) => boolean | Promise<boolean> |
Decide what a scoped grant may do. Without it, scoped principals are denied everything. | src/server/http.ts:216 |