authorize
fun authorize(matcher: ServerWebExchangeMatcher = ServerWebExchangeMatchers.anyExchange(), access: ReactiveAuthorizationManager<AuthorizationContext> = authenticated)
Adds an exchange authorization rule for an endpoint matching the provided matcher.
Parameters
matcher
the RequestMatcher to match incoming requests against
access
the ReactiveAuthorizationManager which determines the access to the specific matcher. Some predefined shortcuts have already been created, such as hasAnyAuthority, hasAnyRole, permitAll, authenticated and more
fun authorize(antPattern: String, access: ReactiveAuthorizationManager<AuthorizationContext> = authenticated)
Adds an exchange authorization rule for an endpoint matching the provided ant pattern.
Parameters
antPattern
the ant ant pattern to match incoming requests against.
access
the ReactiveAuthorizationManager which determines the access to the specific matcher. Some predefined shortcuts have already been created, such as hasAnyAuthority, hasAnyRole, permitAll, authenticated and more