public class ServerHttpSecurity.OAuth2LoginSpec
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
ServerHttpSecurity |
and()
Allows method chaining to continue configuring the
ServerHttpSecurity |
ServerHttpSecurity.OAuth2LoginSpec |
authenticationConverter(org.springframework.security.web.server.authentication.ServerAuthenticationConverter authenticationConverter)
Sets the converter to use
|
ServerHttpSecurity.OAuth2LoginSpec |
authenticationFailureHandler(org.springframework.security.web.server.authentication.ServerAuthenticationFailureHandler authenticationFailureHandler)
The
ServerAuthenticationFailureHandler used after authentication failure. |
ServerHttpSecurity.OAuth2LoginSpec |
authenticationManager(org.springframework.security.authentication.ReactiveAuthenticationManager authenticationManager)
Configures the
ReactiveAuthenticationManager to use. |
ServerHttpSecurity.OAuth2LoginSpec |
authenticationMatcher(org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher authenticationMatcher)
Sets the
matcher used for determining if the request is an authentication request. |
ServerHttpSecurity.OAuth2LoginSpec |
authenticationSuccessHandler(org.springframework.security.web.server.authentication.ServerAuthenticationSuccessHandler authenticationSuccessHandler)
The
ServerAuthenticationSuccessHandler used after authentication success. |
ServerHttpSecurity.OAuth2LoginSpec |
authorizationRequestRepository(org.springframework.security.oauth2.client.web.server.ServerAuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest> authorizationRequestRepository)
Sets the repository to use for storing
OAuth2AuthorizationRequest's. |
ServerHttpSecurity.OAuth2LoginSpec |
authorizationRequestResolver(org.springframework.security.oauth2.client.web.server.ServerOAuth2AuthorizationRequestResolver authorizationRequestResolver)
Sets the resolver used for resolving
OAuth2AuthorizationRequest's. |
ServerHttpSecurity.OAuth2LoginSpec |
authorizedClientRepository(org.springframework.security.oauth2.client.web.server.ServerOAuth2AuthorizedClientRepository authorizedClientRepository) |
ServerHttpSecurity.OAuth2LoginSpec |
authorizedClientService(org.springframework.security.oauth2.client.ReactiveOAuth2AuthorizedClientService authorizedClientService) |
ServerHttpSecurity.OAuth2LoginSpec |
clientRegistrationRepository(org.springframework.security.oauth2.client.registration.ReactiveClientRegistrationRepository clientRegistrationRepository) |
protected void |
configure(ServerHttpSecurity http) |
ServerHttpSecurity.OAuth2LoginSpec |
securityContextRepository(org.springframework.security.web.server.context.ServerSecurityContextRepository securityContextRepository)
The
ServerSecurityContextRepository used to save the Authentication. |
public ServerHttpSecurity.OAuth2LoginSpec authenticationManager(org.springframework.security.authentication.ReactiveAuthenticationManager authenticationManager)
ReactiveAuthenticationManager to use. The default is
OAuth2AuthorizationCodeReactiveAuthenticationManagerauthenticationManager - the manager to useServerHttpSecurity.OAuth2LoginSpec to customizepublic ServerHttpSecurity.OAuth2LoginSpec securityContextRepository(org.springframework.security.web.server.context.ServerSecurityContextRepository securityContextRepository)
ServerSecurityContextRepository used to save the Authentication. Defaults to
WebSessionServerSecurityContextRepository.securityContextRepository - the repository to useServerHttpSecurity.OAuth2LoginSpec to continue configuringpublic ServerHttpSecurity.OAuth2LoginSpec authenticationSuccessHandler(org.springframework.security.web.server.authentication.ServerAuthenticationSuccessHandler authenticationSuccessHandler)
ServerAuthenticationSuccessHandler used after authentication success. Defaults to
RedirectServerAuthenticationSuccessHandler redirecting to "/".authenticationSuccessHandler - the success handler to useServerHttpSecurity.OAuth2LoginSpec to customizepublic ServerHttpSecurity.OAuth2LoginSpec authenticationFailureHandler(org.springframework.security.web.server.authentication.ServerAuthenticationFailureHandler authenticationFailureHandler)
ServerAuthenticationFailureHandler used after authentication failure.authenticationFailureHandler - the failure handler to useServerHttpSecurity.OAuth2LoginSpec to customizepublic ServerHttpSecurity.OAuth2LoginSpec authenticationConverter(org.springframework.security.web.server.authentication.ServerAuthenticationConverter authenticationConverter)
authenticationConverter - the converter to useServerHttpSecurity.OAuth2LoginSpec to customizepublic ServerHttpSecurity.OAuth2LoginSpec clientRegistrationRepository(org.springframework.security.oauth2.client.registration.ReactiveClientRegistrationRepository clientRegistrationRepository)
public ServerHttpSecurity.OAuth2LoginSpec authorizedClientService(org.springframework.security.oauth2.client.ReactiveOAuth2AuthorizedClientService authorizedClientService)
public ServerHttpSecurity.OAuth2LoginSpec authorizedClientRepository(org.springframework.security.oauth2.client.web.server.ServerOAuth2AuthorizedClientRepository authorizedClientRepository)
public ServerHttpSecurity.OAuth2LoginSpec authorizationRequestRepository(org.springframework.security.oauth2.client.web.server.ServerAuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest> authorizationRequestRepository)
OAuth2AuthorizationRequest's.authorizationRequestRepository - the repository to use for storing OAuth2AuthorizationRequest'sServerHttpSecurity.OAuth2LoginSpec for further configurationpublic ServerHttpSecurity.OAuth2LoginSpec authorizationRequestResolver(org.springframework.security.oauth2.client.web.server.ServerOAuth2AuthorizationRequestResolver authorizationRequestResolver)
OAuth2AuthorizationRequest's.authorizationRequestResolver - the resolver used for resolving OAuth2AuthorizationRequest'sServerHttpSecurity.OAuth2LoginSpec for further configurationpublic ServerHttpSecurity.OAuth2LoginSpec authenticationMatcher(org.springframework.security.web.server.util.matcher.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)