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 Summary
ConstructorsConstructorDescriptionTokenRevocationLogoutHandler(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, AuthServerProperties authServerProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected TokenValueResolvercreateTokenValueResolver(AuthServerProperties authServerProperties) voidlogout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)
-
Constructor Details
-
TokenRevocationLogoutHandler
public TokenRevocationLogoutHandler(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, AuthServerProperties authServerProperties)
-
-
Method Details
-
createTokenValueResolver
-
logout
public void logout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) - Specified by:
logoutin interfaceorg.springframework.security.web.authentication.logout.LogoutHandler
-