Class RevokeRefreshTokenLogoutHandler

java.lang.Object
com.broadleafcommerce.auth.authorization.security.embedded.logout.RevokeRefreshTokenLogoutHandler
All Implemented Interfaces:
org.springframework.security.web.authentication.logout.LogoutHandler

public class RevokeRefreshTokenLogoutHandler extends Object implements org.springframework.security.web.authentication.logout.LogoutHandler
Revoke refresh token on logout if provided.
Author:
Cade Rea (cade-rea)
  • Constructor Summary

    Constructors
    Constructor
    Description
    RevokeRefreshTokenLogoutHandler(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService oAuth2AuthorizationService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
     
    void
    logout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)
     

    Methods inherited from class java.lang.Object

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

    • RevokeRefreshTokenLogoutHandler

      public RevokeRefreshTokenLogoutHandler(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService oAuth2AuthorizationService)
  • Method Details

    • 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
    • getOAuth2AuthorizationService

      protected org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService getOAuth2AuthorizationService()