Browse Source

权限功能相关配置

tags/v2.3.0
chenjiandong 2 years ago
parent
commit
0ec7891b5d
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      tuoheng_oidc_server/src/main/java/com/tuoheng/config/IdTokenCustomizerConfig.java

+ 3
- 1
tuoheng_oidc_server/src/main/java/com/tuoheng/config/IdTokenCustomizerConfig.java View File

@@ -45,7 +45,9 @@ public class IdTokenCustomizerConfig {
.claims(claims ->
claims.put("username", context.getPrincipal().getName()))
.claims(claims ->
claims.put("oUserId", userBaseInfoDto.getUserId()));
claims.put("oUserId", userBaseInfoDto.getUserId()))
.claims(claims ->
claims.put("clientRoleList", userBaseInfoDto.getClientRoleDtoList()));
}
};
}

Loading…
Cancel
Save