Interface: AuthorizationResult
Defined in: src/types/interfaces/authorization.interface.ts:187
Authorization result.
Properties
allowed
readonlyallowed:boolean
Defined in: src/types/interfaces/authorization.interface.ts:191
Whether the action is allowed.
reason?
readonlyoptionalreason:string
Defined in: src/types/interfaces/authorization.interface.ts:201
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:206
Roles that would grant access (if denied).
requiredScopes?
readonlyoptionalrequiredScopes: readonlystring[]
Defined in: src/types/interfaces/authorization.interface.ts:211
Scopes that would grant access (if denied).