Answer the question
In order to leave comments, you need to log in
How to create a service for asp.net core authentication?
Hello
To pass authentication, you need to throw the appropriate logic into the services, but I have a problem, which is that I don’t know how to do it.
The problem is built around the IHttpContext object. Since the service is a pure C# library, there are no corresponding objects there. Loading the corresponding NuGet package is stupid, because the service library has many other service classes for various kinds of tasks, and loading the library with this is stupid.
What rational options can there be in this regard and how to solve this problem?
Answer the question
In order to leave comments, you need to log in
Loading the corresponding NuGet package is stupid, because the service library has many other service classes for various kinds of tasks, and loading the library with this is stupid.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question