public class ServerOAuth2AuthorizationCodeAuthenticationTokenConverter
extends java.lang.Object
implements org.springframework.security.web.server.authentication.ServerAuthenticationConverter
ServerWebExchange to an OAuth2AuthorizationCodeAuthenticationToken that can be authenticated. The
converter does not validate any errors it only performs a conversion.AuthenticationWebFilter.setServerAuthenticationConverter(ServerAuthenticationConverter)| Constructor and Description |
|---|
ServerOAuth2AuthorizationCodeAuthenticationTokenConverter(ReactiveClientRegistrationRepository clientRegistrationRepository) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<org.springframework.security.core.Authentication> |
convert(org.springframework.web.server.ServerWebExchange serverWebExchange) |
void |
setAuthorizationRequestRepository(ServerAuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest> authorizationRequestRepository)
Sets the
ServerAuthorizationRequestRepository to be used. |
public ServerOAuth2AuthorizationCodeAuthenticationTokenConverter(ReactiveClientRegistrationRepository clientRegistrationRepository)
public void setAuthorizationRequestRepository(ServerAuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest> authorizationRequestRepository)
ServerAuthorizationRequestRepository to be used. The default is
WebSessionOAuth2ServerAuthorizationRequestRepository.authorizationRequestRepository - the repository to use.public reactor.core.publisher.Mono<org.springframework.security.core.Authentication> convert(org.springframework.web.server.ServerWebExchange serverWebExchange)
convert in interface org.springframework.security.web.server.authentication.ServerAuthenticationConverter