PolicyAuthorization
interfacein packageklyn.data
public interface PolicyAuthorization:
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)
Properties
Modifier and Type Member Description
public readonly property callerIdentity
callerIdentity as String
Stable authenticated caller identity written to audit events.
Methods
Modifier and Type Member Description
public audit
audit(event as PolicyAuditEvent) as Void
Persists or forwards one mandatory policy audit event.
public authorize
authorize(policy as Type) as Boolean
Returns whether this caller may bypass the exact policy type.