Just for anybody with my my doubt, add claims to the ClaimPrincipal doesn't require to add a new ClaimType using await _identityClaimTypeManager.CreateAsync(claimType).
I can directly add claims to the ClaimPrincipal as maliming mention.
Appreciated your answer, nice and easy.
So much clear now, I appreciated so much your support.
Thanks liangshiwei, My name is Jose, Ok, the link that you send makes sense for me, I had read before but it's not always easy to get the right direction.
As a summary, the call from the Front End to the application service is intercepted by the HttpClient and redirected to HttpAPI.Host endpoint. Correct?
Therefore, could we say that the call to the method CreateAsync from the Post request of the client razor page it's not executed?
And, please, could you point me to the code where this magic is done?, is it a middleware injected into the request pipeline?
~~At last, but not least is it the code behind PostAsync Method of my razor page (or in this case the Tenant Management module) executed?~~
Thanks so much, Jose