Class KeycloakLogoutHandler

java.lang.Object
de.kaiserpfalzedv.commons.spring.security.KeycloakLogoutHandler
All Implemented Interfaces:
org.springframework.security.web.authentication.logout.LogoutHandler

@Component public class KeycloakLogoutHandler extends Object implements org.springframework.security.web.authentication.logout.LogoutHandler
Since:
2024-06-14
Version:
1.0.0
Author:
klenkes74 <rlichti@kaiserpfalz-edv.de>
  • Constructor Summary

    Constructors
    Constructor
    Description
    KeycloakLogoutHandler(org.springframework.web.client.RestTemplate restTemplate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    logout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication auth)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KeycloakLogoutHandler

      public KeycloakLogoutHandler(org.springframework.web.client.RestTemplate restTemplate)
  • Method Details

    • logout

      public void logout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication auth)
      Specified by:
      logout in interface org.springframework.security.web.authentication.logout.LogoutHandler