-
ABP Framework version: v7.2.2
-
UI Type: Blazor Server
-
Database System: PostgreSQL
-
Tiered (for MVC) or Auth Server Separated (for Angular): yes
-
Exception message and full stack trace:
-
Steps to reproduce the issue:
auth 44322 ,claim 有phone_number,但是blazor 和api 都获取不到
Blazor 和Api 添加了引用<PackageReference Include="Volo.Abp.Http.Client.Web" Version="8.3.4" /> <PackageReference Include="Volo.Abp.Http.Client.IdentityModel.Web" Version="8.3.4" />
3 Answer(s)
-
0
Hi, after setting the phone_number in the account manage page, did you logout and then re-login? This is needed to refresh the claims if you are not using dynamic claims.
Can you logout and then re-login and see if the claims are listed as expected?
Regards.
-
0
<PackageReference Include="Volo.Abp.Http.Client.Web" Version="7.2.2" />
<PackageReference Include="Volo.Abp.Http.Client.IdentityModel.Web" Version="7.2.2" />7.2.2 UseAbpClaimsMap , not dynamic claims,
CurrentUser.GetAllClaims() not phone_number -
0
<PackageReference Include="Volo.Abp.Http.Client.Web" Version="7.2.2" />
<PackageReference Include="Volo.Abp.Http.Client.IdentityModel.Web" Version="7.2.2" />7.2.2 UseAbpClaimsMap , not dynamic claims,
CurrentUser.GetAllClaims() not phone_numberCan you logout and then re login to see if claims are refreshed? I have tried just before and it seems there is no problem.