Class ServerOAuth2AuthorizationCodeAuthenticationTokenConverter
- java.lang.Object
-
- org.springframework.security.oauth2.client.web.server.ServerOAuth2AuthorizationCodeAuthenticationTokenConverter
-
- All Implemented Interfaces:
org.springframework.security.web.server.authentication.ServerAuthenticationConverter
public class ServerOAuth2AuthorizationCodeAuthenticationTokenConverter extends java.lang.Object implements org.springframework.security.web.server.authentication.ServerAuthenticationConverterConverts from aServerWebExchangeto anOAuth2AuthorizationCodeAuthenticationTokenthat can be authenticated. The converter does not validate any errors it only performs a conversion.- Since:
- 5.1
- See Also:
AuthenticationWebFilter.setServerAuthenticationConverter(ServerAuthenticationConverter)
-
-
Constructor Summary
Constructors Constructor Description ServerOAuth2AuthorizationCodeAuthenticationTokenConverter(ReactiveClientRegistrationRepository clientRegistrationRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<org.springframework.security.core.Authentication>convert(org.springframework.web.server.ServerWebExchange serverWebExchange)voidsetAuthorizationRequestRepository(ServerAuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest> authorizationRequestRepository)Sets theServerAuthorizationRequestRepositoryto be used.
-
-
-
Constructor Detail
-
ServerOAuth2AuthorizationCodeAuthenticationTokenConverter
public ServerOAuth2AuthorizationCodeAuthenticationTokenConverter(ReactiveClientRegistrationRepository clientRegistrationRepository)
-
-
Method Detail
-
setAuthorizationRequestRepository
public void setAuthorizationRequestRepository(ServerAuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest> authorizationRequestRepository)
Sets theServerAuthorizationRequestRepositoryto be used. The default isWebSessionOAuth2ServerAuthorizationRequestRepository.- Parameters:
authorizationRequestRepository- the repository to use.
-
convert
public reactor.core.publisher.Mono<org.springframework.security.core.Authentication> convert(org.springframework.web.server.ServerWebExchange serverWebExchange)
- Specified by:
convertin interfaceorg.springframework.security.web.server.authentication.ServerAuthenticationConverter
-
-