abpframework / abpframework/abp
How to get extra property of current user in angular
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 14.4k
- Forks
- 3.7k
- Avg merge
- 15h 32m
- Merged PRs (30d)
- 106
Description
- Your ABP Framework version.: 4.4.2 Commercial
- Your User Interface type: Angular
- Your database provider: EF Core
I added an extra property to IdentityUser by following this article . Now I want to be able to use it in Angular app when I get current user by ConfigStateService. I guess I should override the GetCurrentUser in AbpApplicationConfigurationAppService but it's in Volo.Abp.AspNetCore.Mvc project which isn't directly referenced by any of the projects in application startup template.
Should I add the reference in .Application project, override the app service somewhere else or create my own app service just to load current user with extra properties?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Angular's ConfigStateService and the GetCurrentUser entry point in AbpApplicationConfigurationAppService, then inspect the Volo.Abp.AspNetCore.Mvc reference and the application startup template. Compare the proposed Application-project override with a custom app service; done means the IdentityUser extra property is available from the current user in Angular.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, csharp
- Domain
- authentication, frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100