Ver código fonte

权限功能相关配置

tags/v2.3.0
chenjiandong 2 anos atrás
pai
commit
780a5293e3
1 arquivos alterados com 2 adições e 2 exclusões
  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 Ver arquivo

@@ -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());
.claim("authority", userBaseInfoDto.getAuthorityList());
//.claim("clientRoleList", userBaseInfoDto.getClientRoleDtoList().toString());
}
/*if (scopes.contains(OidcScopes.EMAIL)) {
builder.email(name + "@163.com").emailVerified(true);

Carregando…
Cancelar
Salvar