I can't get the claims I set in UserClaimsPrincipalFactory to work with Identity Server.
The claims set in
public override async Task<ClaimsPrincipal> CreateAsync(User user)
{
var claim = await base.CreateAsync(user);
...
}
works without issue for normal angular app, but not when I use the ConsoleApiClient. Nothing I tried worked, so not worth listing my futile efforts.
How do I add these claims to the Identity Server claims?
many thanks
3 Answer(s)
-
0
Hi @feloff,
Sorry that I missed your quesiton. Did you find a way ?
-
0
No - gave up in the end. Would be great to get it to work as it would make it much easier to develop integrations tests, i.e. build a sequence/workflow of api calls, and performance tests for workflows using a test database.
-
0
Hi @feloff
I don't know how to do it at the moment but if you can create an issue on GitHub, I can try to prepare an example or even make the app work like that by default if possible.