public class ServerHttpSecurity.OAuth2LoginSpec
extends java.lang.Object
public ServerHttpSecurity.OAuth2LoginSpec authenticationManager(ReactiveAuthenticationManager authenticationManager)
ReactiveAuthenticationManager to use. The default is
OAuth2AuthorizationCodeReactiveAuthenticationManagerauthenticationManager - the manager to useServerHttpSecurity.OAuth2LoginSpec to customizepublic ServerHttpSecurity.OAuth2LoginSpec securityContextRepository(ServerSecurityContextRepository securityContextRepository)
ServerSecurityContextRepository used to save the Authentication. Defaults to
WebSessionServerSecurityContextRepository.securityContextRepository - the repository to useServerHttpSecurity.OAuth2LoginSpec to continue configuringpublic 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 authenticationFailureHandler(ServerAuthenticationFailureHandler authenticationFailureHandler)
ServerAuthenticationFailureHandler used after authentication failure.
Defaults to RedirectServerAuthenticationFailureHandler redirecting to "/login?error".authenticationFailureHandler - the failure 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 authorizationRequestRepository(ServerAuthorizationRequestRepository<OAuth2AuthorizationRequest> authorizationRequestRepository)
OAuth2AuthorizationRequest's.authorizationRequestRepository - the repository to use for storing OAuth2AuthorizationRequest'sServerHttpSecurity.OAuth2LoginSpec for further configurationpublic 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()
ServerHttpSecurityServerHttpSecurity to continue configuringprotected void configure(ServerHttpSecurity http)