Browse Source

权限功能相关配置

tags/v2.3.0
chenjiandong 2 years ago
parent
commit
5c96e79f50
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tuoheng_oidc_server/src/main/java/com/tuoheng/service/impl/OidcUserInfoServiceImpl.java

+ 2
- 2
tuoheng_oidc_server/src/main/java/com/tuoheng/service/impl/OidcUserInfoServiceImpl.java View File

@@ -31,8 +31,8 @@ public class OidcUserInfoServiceImpl implements OidcUserInfoService {
if (scopes.contains(OidcScopes.PROFILE)) {
builder.claim("userId", userBaseInfoDto.getUserId())
.claim("userName", userBaseInfoDto.getUserName())
.claim("authority", userBaseInfoDto.getAuthorityList());
//.claim("clientRoleList", userBaseInfoDto.getClientRoleDtoList().toString());
.claim("authority", userBaseInfoDto.getAuthorityList())
.claim("clientRoleList", userBaseInfoDto.getClientRoleDtoList());
}
/*if (scopes.contains(OidcScopes.EMAIL)) {
builder.email(name + "@163.com").emailVerified(true);

Loading…
Cancel
Save