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
ConstructorDescriptionRevokeRefreshTokenLogoutHandler
(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService oAuth2AuthorizationService) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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)
-
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 interfaceorg.springframework.security.web.authentication.logout.LogoutHandler
-
getOAuth2AuthorizationService
protected org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService getOAuth2AuthorizationService()
-