Package io.jmix.securityoauth2.impl
Class SessionTokenEnhancer
java.lang.Object
io.jmix.securityoauth2.impl.SessionTokenEnhancer
- All Implemented Interfaces:
org.springframework.security.oauth2.provider.token.TokenEnhancer
public class SessionTokenEnhancer
extends Object
implements org.springframework.security.oauth2.provider.token.TokenEnhancer
A token enhancer that provides session info details
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.beans.factory.ObjectProvider<SessionData>
-
Constructor Summary
ConstructorDescriptionSessionTokenEnhancer
(org.springframework.beans.factory.ObjectProvider<SessionData> sessionDataProvider) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.common.OAuth2AccessToken
enhance
(org.springframework.security.oauth2.common.OAuth2AccessToken accessToken, org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
-
Field Details
-
sessionDataProvider
-
-
Constructor Details
-
SessionTokenEnhancer
public SessionTokenEnhancer(org.springframework.beans.factory.ObjectProvider<SessionData> sessionDataProvider)
-
-
Method Details
-
enhance
public org.springframework.security.oauth2.common.OAuth2AccessToken enhance(org.springframework.security.oauth2.common.OAuth2AccessToken accessToken, org.springframework.security.oauth2.provider.OAuth2Authentication authentication) - Specified by:
enhance
in interfaceorg.springframework.security.oauth2.provider.token.TokenEnhancer
-