Base solution for your next web application
Open Closed

ClaimsPrincial And Identity Server #9105


User avatar
0
feloff created

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)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @feloff,

    Sorry that I missed your quesiton. Did you find a way ?

  • User Avatar
    0
    feloff created

    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.

  • User Avatar
    0
    ismcagdas created
    Support Team

    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.