public class UserRestrictionTokenEnhancer extends AbstractUserTokenEnhancer
Constructor and Description |
---|
UserRestrictionTokenEnhancer(PermissionRepository permissionRepository) |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.oauth2.common.OAuth2AccessToken |
enhance(org.springframework.security.oauth2.common.OAuth2AccessToken accessToken,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication) |
protected PermissionRepository |
getPermissionRepository() |
protected OAuth2UserDetails |
getUserDetails(org.springframework.security.oauth2.provider.OAuth2Authentication authentication) |
getUser, getUserService, isAnonymousCsrImpersonation, setUserContext, setUserService, shouldEnhance
public UserRestrictionTokenEnhancer(PermissionRepository permissionRepository)
public org.springframework.security.oauth2.common.OAuth2AccessToken enhance(org.springframework.security.oauth2.common.OAuth2AccessToken accessToken, org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
@Nullable protected OAuth2UserDetails getUserDetails(org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
protected PermissionRepository getPermissionRepository()
Copyright © 2021. All rights reserved.