Class OidcClientInitiatedServerLogoutSuccessHandler

  • All Implemented Interfaces:
    EventListener, org.springframework.context.ApplicationListener<org.springframework.cloud.gateway.event.RefreshRoutesEvent>, org.springframework.security.web.server.authentication.logout.ServerLogoutSuccessHandler

    public class OidcClientInitiatedServerLogoutSuccessHandler
    extends AbstractServerLogoutSuccessHandler
    A reactive logout success handler for initiating OIDC logout through the user agent.
    See Also:
    RP-Initiated Logout, ServerLogoutSuccessHandler
    • Field Detail

      • serverLogoutSuccessHandler

        protected final org.springframework.security.web.server.authentication.logout.RedirectServerLogoutSuccessHandler serverLogoutSuccessHandler
    • Constructor Detail

      • OidcClientInitiatedServerLogoutSuccessHandler

        public OidcClientInitiatedServerLogoutSuccessHandler()
    • Method Detail

      • setLogoutSuccessUrl

        public void setLogoutSuccessUrl​(URI logoutSuccessUrl)
        The URL to redirect to after successfully logging out when not originally an OIDC login
        Parameters:
        logoutSuccessUrl - the url to redirect to. Default is "/login?logout".
      • onLogoutSuccess

        public reactor.core.publisher.Mono<Void> onLogoutSuccess​(org.springframework.security.web.server.WebFilterExchange exchange,
                                                                 org.springframework.security.core.Authentication authentication)