public interface PolicyAuthorization:
Application-owned authorization and audit sink for exceptional policy bypass.
Klyn never manufactures an authorization token. Applications implement this interface using their own trusted identity and authorization service.
if authorization.authorize(TenantPolicy.type): print(authorization.callerIdentity)
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | callerIdentitycallerIdentity as String |
Stable authenticated caller identity written to audit events. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | auditaudit(event as PolicyAuditEvent) as Void |
Persists or forwards one mandatory policy audit event. |
| public | authorize | Returns whether this caller may bypass the exact policy type. |