Class HttpMessageConverterAuthenticationSuccessHandler

java.lang.Object
org.springframework.security.web.authentication.HttpMessageConverterAuthenticationSuccessHandler
All Implemented Interfaces:
AuthenticationSuccessHandler

public final class HttpMessageConverterAuthenticationSuccessHandler extends Object implements AuthenticationSuccessHandler
An AuthenticationSuccessHandler that writes a JSON response with the redirect URL and an authenticated status similar to: { "redirectUrl": "/user/profile", "authenticated": true }
Since:
6.4
  • Constructor Details

    • HttpMessageConverterAuthenticationSuccessHandler

      public HttpMessageConverterAuthenticationSuccessHandler()
  • Method Details

    • setConverter

      public void setConverter(org.springframework.http.converter.HttpMessageConverter<Object> converter)
      Sets the GenericHttpMessageConverter to write to the response. The default is MappingJackson2HttpMessageConverter.
      Parameters:
      converter - the GenericHttpMessageConverter to use. Cannot be null.
    • setRequestCache

      public void setRequestCache(RequestCache requestCache)
      Sets the