mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-31 08:14:18 +08:00
Merge branch 'dev' of https://gitee.com/log4j/pig into dev
This commit is contained in:
commit
2ea2e320ce
@ -95,7 +95,7 @@ public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdap
|
|||||||
@Bean
|
@Bean
|
||||||
public TokenEnhancer tokenEnhancer() {
|
public TokenEnhancer tokenEnhancer() {
|
||||||
return (accessToken, authentication) -> {
|
return (accessToken, authentication) -> {
|
||||||
final Map<String, Object> additionalInfo = new HashMap<>(1);
|
final Map<String, Object> additionalInfo = new HashMap<>(4);
|
||||||
PigUser pigUser = (PigUser) authentication.getUserAuthentication().getPrincipal();
|
PigUser pigUser = (PigUser) authentication.getUserAuthentication().getPrincipal();
|
||||||
additionalInfo.put(SecurityConstants.DETAILS_LICENSE, SecurityConstants.PROJECT_LICENSE);
|
additionalInfo.put(SecurityConstants.DETAILS_LICENSE, SecurityConstants.PROJECT_LICENSE);
|
||||||
additionalInfo.put(SecurityConstants.DETAILS_USER_ID, pigUser.getId());
|
additionalInfo.put(SecurityConstants.DETAILS_USER_ID, pigUser.getId());
|
||||||
|
Loading…
Reference in New Issue
Block a user