CoSecAbacQueryPolicy

class CoSecAbacQueryPolicy(options: AbacQueryOptions = AbacQueryOptions.DEFAULT, val attributePrefix: String = DEFAULT_ATTRIBUTE_PREFIX) : AbacQueryPolicy

The principal's ABAC tags from CoSec: each attribute of the authenticated principal whose key starts with attributePrefix is a tag named by the rest of the key, its values a comma-separated string or a collection (abac.region = "east,north" is the tag region with east and north). An anonymous principal, or one without such attributes, has no tags. CoSec's WebFlux filter puts the principal in the Reactor context the query runs in. Since 9.9.0.

Constructors

Link copied to clipboard
constructor(options: AbacQueryOptions = AbacQueryOptions.DEFAULT, attributePrefix: String = DEFAULT_ATTRIBUTE_PREFIX)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun getPrincipalTags(contextView: ContextView, context: QueryContext<*>): Mono<AbacTags>
Link copied to clipboard
fun tagsOf(attributes: Map<String, Any?>): AbacTags

The tags among attributes: a key without a name after the prefix, or without values, is none.