In this post, we will see how to resolve How to inject IPrincipal into a class Question: I have a class where I need to access IPrincipal because I will save some user information in a database from that class. ...