public class ServerOAuth2LoginAuthenticationTokenConverter extends java.lang.Object implements java.util.function.Function<org.springframework.web.server.ServerWebExchange,reactor.core.publisher.Mono<Authentication>>
ServerWebExchange to an OAuth2LoginAuthenticationToken that can be authenticated. The
converter does not validate any errors it only performs a conversion.AuthenticationWebFilter.setAuthenticationConverter(Function)| Constructor and Description |
|---|
ServerOAuth2LoginAuthenticationTokenConverter(ReactiveClientRegistrationRepository clientRegistrationRepository) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Authentication> |
apply(org.springframework.web.server.ServerWebExchange serverWebExchange) |
void |
setAuthorizationRequestRepository(ReactiveAuthorizationRequestRepository<OAuth2AuthorizationRequest> authorizationRequestRepository)
Sets the
ReactiveAuthorizationRequestRepository to be used. |
public ServerOAuth2LoginAuthenticationTokenConverter(ReactiveClientRegistrationRepository clientRegistrationRepository)
public void setAuthorizationRequestRepository(ReactiveAuthorizationRequestRepository<OAuth2AuthorizationRequest> authorizationRequestRepository)
ReactiveAuthorizationRequestRepository to be used. The default is
WebSessionOAuth2ReactiveAuthorizationRequestRepository.authorizationRequestRepository - the repository to use.public reactor.core.publisher.Mono<Authentication> apply(org.springframework.web.server.ServerWebExchange serverWebExchange)
apply in interface java.util.function.Function<org.springframework.web.server.ServerWebExchange,reactor.core.publisher.Mono<Authentication>>