CoSecCallerOptions

class CoSecCallerOptions @InternalWowApi constructor(val defaultTenant: String = Caller.DEFAULT_TENANT, val crossScopeRoles: Set<String> = emptySet(), val tenantRoles: 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 in the scope CoSec resolved for its request and is of the platform tenant (Caller.PLATFORM_TENANT): a cross-scope role held in any other tenant grants nothing (#7346). The host contributes them as platform roles (me.ahoo.wow.api.caller.PlatformRoles), so the edge refuses a caller of another tenant that holds one.

  • A principal is a tenant-level caller when it has one of tenantRoles there: 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.

Roles alone: CoSec 8 tells an application a principal's roles in the request's scope, never the policies it attaches.

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(), tenantRoles: Set<String> = emptySet())

Properties

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