AuthorizeExchangeDsl
class AuthorizeExchangeDsl
A Kotlin DSL to configure ServerHttpSecurity exchange authorization using idiomatic Kotlin code.
Author
Eleftheria Stein
Since
5.4
Properties
Functions
Link copied to clipboard
fun authorize(antPattern: String, access: ReactiveAuthorizationManager<AuthorizationContext> = authenticated)
Adds an exchange authorization rule for an endpoint matching the provided ant pattern.
fun authorize(matcher: ServerWebExchangeMatcher = ServerWebExchangeMatchers.anyExchange(), access: ReactiveAuthorizationManager<AuthorizationContext> = authenticated)
Adds an exchange authorization rule for an endpoint matching the provided matcher.
Link copied to clipboard
Require any authority.
Link copied to clipboard
Require any specific role. This is a shortcut for hasAnyAuthority.
Link copied to clipboard
Require a specific authority.
Link copied to clipboard
Require a specific IP or range of IP addresses.
Link copied to clipboard
Require a specific role. This is a shortcut for hasAuthority.