Interface: AuthorizationResult
Defined in: src/types/interfaces/authorization.interface.ts:194
Authorization result.
Properties
allowed
readonlyallowed:boolean
Defined in: src/types/interfaces/authorization.interface.ts:198
Whether the action is allowed.
reason?
readonlyoptionalreason:string
Defined in: src/types/interfaces/authorization.interface.ts:208
Reason for the decision.
Remarks
Useful for debugging and audit logging.
Example
"role_permission", "resource_owner", "scope_missing"
requiredRoles?
readonlyoptionalrequiredRoles: readonlyRole[]
Defined in: src/types/interfaces/authorization.interface.ts:213
Roles that would grant access (if denied).
requiredScopes?
readonlyoptionalrequiredScopes: readonlystring[]
Defined in: src/types/interfaces/authorization.interface.ts:218
Scopes that would grant access (if denied).