Interface ServerAuthenticationConverter
- All Known Implementing Classes:
ServerBearerTokenAuthenticationConverter,ServerFormLoginAuthenticationConverter,ServerHttpBasicAuthenticationConverter,ServerOAuth2AuthorizationCodeAuthenticationTokenConverter,ServerX509AuthenticationConverter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A strategy used for converting from a
ServerWebExchange to an
Authentication used for authenticating with a provided
ReactiveAuthenticationManager. If
the result is Mono.empty(), then it signals that no authentication attempt
should be made.- Since:
- 5.1
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Authentication>convert(org.springframework.web.server.ServerWebExchange exchange) Converts aServerWebExchangeto anAuthentication
-
Method Details
-
convert
reactor.core.publisher.Mono<Authentication> convert(org.springframework.web.server.ServerWebExchange exchange) Converts aServerWebExchangeto anAuthentication- Parameters:
exchange- TheServerWebExchange- Returns:
- A
Monorepresenting anAuthentication
-