0

I have a RESTful API with .NET Core. It has a custom auth logic.

I want to create a temporary solution and expose /graphql endpoint for the same service that should have a custom, different, authentication logic with custom policies.

Is it possible to separate auth schemas for graphql and rest?

dr11
  • 5,166
  • 11
  • 35
  • 77

1 Answers1

0

I think you can use Middleware to process token. Below is the link: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/middleware/?view=aspnetcore-7.0

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jun 25 '23 at 00:48