public class ServerHttpSecurity.OAuth2LoginSpec
extends java.lang.Object
public ServerHttpSecurity.OAuth2LoginSpec authenticationManager(ReactiveAuthenticationManager authenticationManager)
ReactiveAuthenticationManager
to use. The default is
OAuth2AuthorizationCodeReactiveAuthenticationManager
authenticationManager
- the manager to useServerHttpSecurity.OAuth2LoginSpec
to customizepublic ServerHttpSecurity.OAuth2LoginSpec authenticationSuccessHandler(ServerAuthenticationSuccessHandler authenticationSuccessHandler)
ServerAuthenticationSuccessHandler
used after authentication success. Defaults to
RedirectServerAuthenticationSuccessHandler
redirecting to "/".authenticationSuccessHandler
- the success handler to useServerHttpSecurity.OAuth2LoginSpec
to customizepublic ServerHttpSecurity.OAuth2LoginSpec authenticationConverter(ServerAuthenticationConverter authenticationConverter)
authenticationConverter
- the converter to useServerHttpSecurity.OAuth2LoginSpec
to customizepublic ServerHttpSecurity.OAuth2LoginSpec clientRegistrationRepository(ReactiveClientRegistrationRepository clientRegistrationRepository)
public ServerHttpSecurity.OAuth2LoginSpec authorizedClientService(ReactiveOAuth2AuthorizedClientService authorizedClientService)
public ServerHttpSecurity.OAuth2LoginSpec authorizedClientRepository(ServerOAuth2AuthorizedClientRepository authorizedClientRepository)
public ServerHttpSecurity.OAuth2LoginSpec authorizationRequestResolver(ServerOAuth2AuthorizationRequestResolver authorizationRequestResolver)
OAuth2AuthorizationRequest
's.authorizationRequestResolver
- the resolver used for resolving OAuth2AuthorizationRequest
'sServerHttpSecurity.OAuth2LoginSpec
for further configurationpublic ServerHttpSecurity.OAuth2LoginSpec authenticationMatcher(ServerWebExchangeMatcher authenticationMatcher)
matcher
used for determining if the request is an authentication request.authenticationMatcher
- the matcher
used for determining if the request is an authentication requestServerHttpSecurity.OAuth2LoginSpec
for further configurationpublic ServerHttpSecurity and()
ServerHttpSecurity
ServerHttpSecurity
to continue configuringprotected void configure(ServerHttpSecurity http)