Hi;
This question is for the Identity library. My app is Blazor (server side) but I think that is irrelevant here.
Where is the context.User built in the Identity library? And can I add my own code in there?
I ask because I would like to add a claim to the context.User.Claims where the type is "Id" and the value is the AspNetUsers.Id guid for the user. Having this directly available from context.User would be super convenient.
I think this is connected to my question Identity library - Check Enabled & re-read Claims on each page because both require getting in to the Identity library code that builds the User object. I'm hoping there's a way, either with a defined middle-ware API, a method in the library I can directly edit, or some other approach.
thanks - dave