CoSecCallerOptions

class CoSecCallerOptions @InternalWowApi constructor(val defaultTenant: String = Caller.DEFAULT_TENANT, val crossScopeRoles: Set<String> = emptySet(), val crossScopePolicies: Set<String> = emptySet(), val tenantRoles: Set<String> = emptySet(), val tenantPolicies: Set<String> = emptySet())

What CoSecCallerResolver takes from the host (wow.tenant.default and wow.cosec.*).

  • defaultTenant is the tenant of a principal in CoSec's default tenant, (0).

  • A principal acts across scopes (Caller.crossScope) when it has one of crossScopeRoles or one of crossScopePolicies in the scope CoSec resolved for its request.

  • A principal is a tenant-level caller when it has one of tenantRoles or one of tenantPolicies: its caller has no owner, so it reads and writes every aggregate of its tenant, each action still authorized by CoSec. Any other principal is an owner-level caller, its own owner.

Fields may be added: Wow builds it from the host's configuration, so the constructor is internal to Wow.

Constructors

Link copied to clipboard
constructor(defaultTenant: String = Caller.DEFAULT_TENANT, crossScopeRoles: Set<String> = emptySet(), crossScopePolicies: Set<String> = emptySet(), tenantRoles: Set<String> = emptySet(), tenantPolicies: Set<String> = emptySet())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String