Class AccessTokenAuthenticationListener
- java.lang.Object
-
- org.craftercms.studio.impl.v2.security.listener.AccessTokenAuthenticationListener
-
public class AccessTokenAuthenticationListener extends Object
Listener for Spring'sAuthenticationSuccessEvent
that generates an access token for the user- Since:
- 4.0
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected AccessTokenService
accessTokenService
-
Constructor Summary
Constructors Constructor Description AccessTokenAuthenticationListener(AccessTokenService accessTokenService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteTokens(org.springframework.security.authentication.event.LogoutSuccessEvent event)
void
generateTokens(org.springframework.security.authentication.event.AuthenticationSuccessEvent event)
-
-
-
Field Detail
-
accessTokenService
protected AccessTokenService accessTokenService
-
-
Constructor Detail
-
AccessTokenAuthenticationListener
@ConstructorProperties("accessTokenService") public AccessTokenAuthenticationListener(AccessTokenService accessTokenService)
-
-