How can get custom claim
@@abp 7.0 openiddict setting token ValidateLifetime
-->https://stackoverflow.com/questions/75408673/how-can-i-change-the-openiddict-accesstoken-lifetime-in-apb-7
##--->thanks , i founded it PreConfigure<OpenIddictServerBuilder>(builder => { builder .SetAccessTokenLifetime(TimeSpan.FromDays(365)) .SetIdentityTokenLifetime(TimeSpan.FromDays(365)); });
@@abp OpenIddict OpenIddictServerBuilder
-->https://github.com/abpframework/abp/blob/dev/docs/en/Modules/OpenIddict.md
-->##https://docs.abp.io/en/abp/latest/Authorization#claims-principal-factory
-->IAbpClaimsPrincipalContributor
@@abp IAbpClaimsPrincipalContributor
https://github.com/abpframework/abp/issues/6048
#How can get custom claim · Issue #6048 · abpframework/abp
#1.Created a class inheriting from the UserClaimsPrincipalFactory class
#2.Replace the UserClaimsPrincipalFactory by pre-configuring
#
I created a class inheriting from the UserClaimsPrincipalFactory class and override the CreateAsync method,it worked.
But I can't get my custom claim