When logging in, I was looking for a way to add more user claims. I discovered the following implementation on the.net 6 using IUserClaimsPrincipalFactory. However, this has the drawback of calling the database with each HTTP request. So instead of calling the database with every http request, I simply wanted to do so once (during initial authentication).
I found the following implmentation for .net 5.
Please explain to me why the IUserClaimsPrincipalFactory is not listed in the.net 6 documentation. What are the drawbacks, and is there another option than utilizing/not utilizing IClaimsTransformation to call the database once during authentication not for each HTTP call?