你的位置: 码友网首页 / 资讯源列表 / GraphQL.NET and endpoint authorization in ASP.NET Core 3.1

关于[GraphQL.NET and endpoint authorization in ASP.NET Core 3.1]的摘要:

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.

原文地址: https://danielwertheim.se/graphql-net-and-endpoint-authorization-in-asp-net-core-3-1/

收录时间: 2020-11-06 浏览量: 1138 分类: ASP.NET Core

| 0 收藏 | 0