简体   繁体   English

如何使用 FusionAuth API 密钥对 HotChocolate Graph API 进行身份验证/授权

[英]How to Authenticate/Authorize HotChocolate Graph API with FusionAuth API Key

I am currently creating a Graph API in .net core with HotChocolate framework.我目前正在使用 HotChocolate 框架在 .net 核心中创建图形 API。 I was able to implement custom JWT Bearer auth.我能够实现自定义 JWT Bearer 身份验证。 However, our project requires FusionAuth to be used as auth provider and I am having trouble integrating it with the project.但是,我们的项目需要将 FusionAuth 用作身份验证提供程序,我无法将其与项目集成。 Since, the project is a partner api, API key authentication is what we are looking to go with.因为,该项目是 api 的合作伙伴,API 密钥认证是我们正在寻找的 go 的合作伙伴。 Can anyone please provide an insight on how I can implement it?谁能提供有关我如何实施它的见解? I am kind of new to these stuffs.我对这些东西有点陌生。 Any help will be much appreciated.任何帮助都感激不尽。

I used, HotChocolate.AspNetCore.Authorization package for JWT auth.我使用HotChocolate.AspNetCore.Authorization package 用于 JWT 身份验证。 Thanks in advance.提前致谢。

Wait for the next releases and this will be changed = a lot of extended functionality.等待下一个版本,这将改变 = 很多扩展功能。 Current auth has some limitations.. Graphql itself do not provide auth stuff.当前的身份验证有一些限制.. Graphql 本身不提供身份验证内容。 But there will be new extension in HC for this... Just wait..但是HC中会有新的扩展名……等等……

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何授权Swagger使用MS Graph API - How to Authorize Swagger to use MS Graph API 如何从 asp.net core 3.0/angular 应用程序验证用户并授权应用程序使用 IdentityServer4 进行 api 访问 - How to authenticate user from an asp.net core 3.0 / angular app and authorize the app for api access with IdentityServer4 无法使用专有API上的Graph API访问令牌进行身份验证 - Cannot authenticate with Graph API access token on proprietary API 如何在 a.Net 上授权不同的角色 5 OAuth API - How to authorize different roles on a .Net 5 OAuth API 如何授权控制器 .NET Core API - How to Authorize Controller .NET Core API 核心2授权API控制器 - Core 2 Authorize on API Controller ASP.NET 核心 API 与 GraphQL 请求本身使用 HotChocolate - ASP.NET Core API with GraphQL request using HotChocolate in itself 如何验证 Prestashop API REST 客户端 - How to authenticate Prestashop API REST Client 如何在 .net 核心中对 Workday API 进行身份验证? - How to authenticate to Workday API in .net core? 如何让 [Authorize] 属性在 .NET Core 6 Web API 中起作用? - How to get [Authorize] attribute work in .NET Core 6 Web API?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM