@@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
#
Closed
How can get custom claim#6048
journey191 opened this issue on Nov 4, 2020 · 5 commentsComments
journey191 commented on Nov 4, 2020
I created a class inheriting from the UserClaimsPrincipalFactory class and override the CreateAsync method,it worked. |
|
1.Created a class inheriting from the UserClaimsPrincipalFactory class
2.Replace the UserClaimsPrincipalFactory by pre-configuring
I can't get my custom claim
But Now I resolve the problem by adding ApiResource in
|