Class SecurityServiceAccessTokenConverter
- java.lang.Object
-
- org.springframework.security.oauth2.provider.token.DefaultAccessTokenConverter
-
- com.broadleafcommerce.auth.user.session.SecurityServiceAccessTokenConverter
-
- All Implemented Interfaces:
org.springframework.security.oauth2.provider.token.AccessTokenConverter
public class SecurityServiceAccessTokenConverter extends org.springframework.security.oauth2.provider.token.DefaultAccessTokenConverter
Converts the access token using the defaults withinDefaultAccessTokenConverter
and then extracts the narrowed set of permissions usingSecurityService.extractPermissions(Set)
in order to restrict the set of delegated authorities to the set of requested scopes.- Author:
- Nick Crum (ncrum), Jeff Fischer, Phillip Verheyden (phillipuniverse)
-
-
Constructor Summary
Constructors Constructor Description SecurityServiceAccessTokenConverter(SecurityService securityService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,?>
convertAccessToken(org.springframework.security.oauth2.common.OAuth2AccessToken token, org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
-
-
-
Constructor Detail
-
SecurityServiceAccessTokenConverter
public SecurityServiceAccessTokenConverter(SecurityService securityService)
-
-
Method Detail
-
convertAccessToken
public Map<String,?> convertAccessToken(org.springframework.security.oauth2.common.OAuth2AccessToken token, org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
- Specified by:
convertAccessToken
in interfaceorg.springframework.security.oauth2.provider.token.AccessTokenConverter
- Overrides:
convertAccessToken
in classorg.springframework.security.oauth2.provider.token.DefaultAccessTokenConverter
-
-