You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your User Interface type (Angular/MVC/React... etc.) if the issue is related to a specific UI
MVC
Your database provider(EF Core/MongoDB)
EF Core
Description:
I want to add custom claim to CurrentUser And I do as recommendation in bellow link: #42 (comment)
Steps needed to reproduce the problem.
abp new Acme.BookStore --tiered
Add MyUserClaimsPrincipalFactory(detail see below code) class in Acme.BookStore.Domain project
Replace the AbpUserClaimsPrincipalFactory with MyUserClaimsPrincipalFactory by pre-configuring the IdentityBuilder in the PreConfigureServices of BookStoreDomainModule.cs module
Start the Acme.BookStore.IdentityServer project and login in admin/1q2w3E*
Check the Claims and cannot find my custom claim(mpa_app)
I have uploaded my test demo, I hope you can help me find the problem or what I have missed.
As time goes, does we have another way to extend user claims?
I search all the ticket about the claims, and I found it was very confusing and lots of them should be out-of-date.
If you have documentation that explains how to extend the user claim, how to map them will prefer good.
The text was updated successfully, but these errors were encountered:
gerryge
changed the title
CurrentUser add claim cannot work(cannot go to my CreateAsync function breakpoints at all)
CurrentUser add claim cannot work(cannot go to my CreateAsync function breakpoints at all) and document request
Mar 16, 2021
v4.2.2
MVC
EF Core
Description:
I want to add custom claim to CurrentUser And I do as recommendation in bellow link:
#42 (comment)
In BookStoreDomainModule.cs
bookstore-tiered.zip
I have uploaded my test demo, I hope you can help me find the problem or what I have missed.
As time goes, does we have another way to extend user claims?
I search all the ticket about the claims, and I found it was very confusing and lots of them should be out-of-date.
If you have documentation that explains how to extend the user claim, how to map them will prefer good.
I am very confusing as below way, which one recommended, and what's difference, and each one for what scenario?
#7165 (comment)
#7998 (comment)
#7973 (comment)
Thank you!
Have a nice day.
The text was updated successfully, but these errors were encountered: