Class TokenRevocationLogoutHandler

java.lang.Object
io.jmix.authserver.authentication.TokenRevocationLogoutHandler
All Implemented Interfaces:
org.springframework.security.web.authentication.logout.LogoutHandler

public class TokenRevocationLogoutHandler extends Object implements org.springframework.security.web.authentication.logout.LogoutHandler
LogoutHandler that tries to get bearer token from the request and removes related OAuth2Authorization from the token storage.
  • Constructor Details

    • TokenRevocationLogoutHandler

      public TokenRevocationLogoutHandler(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, AuthServerProperties authServerProperties)
  • Method Details

    • createTokenValueResolver

      protected TokenValueResolver createTokenValueResolver(AuthServerProperties authServerProperties)
    • logout

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