@Service @ConditionalOnMissingBean(value=IJwtAdditionalInformationService.class) public class JwtAdditionalInformationServiceImpl extends Object implements IJwtAdditionalInformationService
| Constructor and Description |
|---|
JwtAdditionalInformationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
additionalInformation(org.springframework.security.oauth2.common.OAuth2AccessToken accessToken,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
在jwt中添加额外信息
|
public Map<String,Object> additionalInformation(org.springframework.security.oauth2.common.OAuth2AccessToken accessToken, org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
IJwtAdditionalInformationServiceadditionalInformation in interface IJwtAdditionalInformationServiceaccessToken - tokenauthentication - 这里面可以拿到用户信息Copyright © 2019. All rights reserved.