CoSecAutoConfiguration

@AutoConfiguration(before = [WebFluxAutoConfiguration::class])
@ConditionalOnClass(value = [CoSecCommandRequestHeaderAppender::class])
@EnableConfigurationProperties(value = [CoSecProperties::class])
class CoSecAutoConfiguration

Registers CoSec's command extensions: the header appender, and CoSec-Space-Id / CoSec-Request-Id as identity header aliases, which the WebFlux routes read for commands and queries alike. Ordered before WebFluxAutoConfiguration so that WebFlux's @ConditionalOnMissingBean defaults back off instead of being registered beside these beans.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
@Configuration(proxyBeanMethods = false)
@ConditionalOnClass(name = ["me.ahoo.cosec.webflux.ReactiveSecurityContexts"])
@ConditionalOnProperty(value = ["wow.cosec.abac.enabled"], havingValue = "true")
class AbacConfiguration

The principal's ABAC tags from CoSec (wow.cosec.abac.enabled), where CoSec's WebFlux module puts the principal in the Reactor context and the application declares no AbacQueryPolicy of its own.