PlatformRoles

class PlatformRoles @InternalWowApi constructor(val names: Set<String>)

The roles by whose name a service grants platform-wide power: what every tenant reads, or what lives in the platform's own tenant (Caller.PLATFORM_TENANT). A platform role counts only for a caller of that tenant (#7346): the edge refuses a caller of any other tenant that holds one with 403 wow.auth.forbidden, naming the rule, before any route reads its request. An identity service may let a tenant's administrator give a role of any name, so a name alone proves nothing.

A service declares its own in code, as a bean (Spring) the host unites with every other (plus); no configuration key names them, since a role that grants such power is the service's decision. An integration may contribute the roles it is configured to grant power by, such as CoSec's cross-scope roles: a name it adds only adds a refusal.

Fields may be added: construct one with of; the constructor is internal to Wow.

Constructors

Link copied to clipboard
constructor(names: Set<String>)

Types

Link copied to clipboard
object Companion

Properties

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
fun heldBy(caller: Caller): List<String>

The platform roles among caller's roles.

Link copied to clipboard
operator fun plus(other: PlatformRoles): PlatformRoles

These and other's.

Link copied to clipboard
open override fun toString(): String