PreviousNext

GraphQL.NET and endpoint authorization in ASP.NET Core 3.1

by bill-s, 2020-11-09T20:46:37.583Z

Had my first experience with setting up a GraphQL API in ASP.NET Core 3.1 today using GraphQL-DotNet. Using their examples as inspiration to get started you'll find that there's nothing in the .NET Core sample regarding on how-to protect the endpoint that their middleware maps to. So in this post I'll show how you can leverage the ASP.NET Core Routing & Endpoints construct to require authorization against a middleware.

Read More