Akamai Rest API:与Net Core Nuget或命令行一起使用 [英] Akamai Rest APIs: Use with Net Core Nuget or Command Line

查看:162
本文介绍了Akamai Rest API:与Net Core Nuget或命令行一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试使用Akamei,以便当用户登录后,他们可以访问Net Core API.如何利用Net Core Nuget做到这一点?如果不再推荐或过时的话,如何使用下面的CLI?

We are trying to use Akamei so when person is logged in, they can access Net Core APIs. How can this be done utilizing Net Core Nuget? If Nuget is no longer recommended or outdated, how can CLI below be used?

Github资源也在下面.

Github resource also below.

https://developer.akamai.com/cli/

https://www.nuget.org/packages/Akamai.EdgeGrid. Auth/(5年未更新)

[HttpGet("[action]")]
public async Task<ActionResult<ProductResponse>> GetProduct(ProductRequest request)
{
    var result = await _productService.GetProductMethod(request);
    return Ok(result);
}

资源: https://github.com/akamai/AkamaiOPEN-edgegrid-C-Sharp

推荐答案

感谢您与我们联系!

首先,nuget可能已过时.我建议从GitHub获取C#EdgeGrid库,该库始终是最新的.此处链接: https://github.com/akamai/AkamaiOPEN-edgegrid-C-Sharp /麦克

First of all, the nuget might be out of date. I recommend grabbing the C# EdgeGrid library from GitHub which is always up-to-date. Link here: https://github.com/akamai/AkamaiOPEN-edgegrid-C-Sharp /Mike

也就是说,我很难理解您的用例以及屏幕截图.

That said, I am having a hard time understanding your use-case in combination with your screenshot.

我是否正确理解您正在使用Akamai的企业应用程序访问(EAA)解决方案/产品?您是否正在使用EAA解决方案让内部用户登录到内部网络,并且一旦登录,就应授予他们使用公司Net Core API的访问权限?

Do I understand it correctly that you are using Akamai's Enterprise Application Access (EAA) solution/product? Are you using the EAA solution to have your internal users log into to your internal network and once logged in, they should be granted access to use your company Net Core APIs?

如果两个答案都是肯定的,则必须使用Akamai EAA API来配置您的EAA设置.您可以在此处找到EAA API的文档: https://developer.akamai .com/api/enterprise_security/enterprise_application_access_configuration/v1.html

If both answers are yes, you would have to use the Akamai EAA API to configure your EAA settings. You can find the documentation for the EAA API here: https://developer.akamai.com/api/enterprise_security/enterprise_application_access_configuration/v1.html

通过在EdgeGrid库中添加EAA API调用,可以使用C#引用此EAA API.

You can reference this EAA API with C# by adding the EAA API calls inside the EdgeGrid library.

我的EAA知识有限,我还没有研究用例仅授予用户访问API的用例.我仅配置了用例,以使EAA用户可以访问完整的应用程序或服务器.我建议与您的Akamai客户团队联系,以便他们与您的本地EAA专家联系.

My EAA knowledge is somewhat limited and I have not worked on a use-case to grant users access to APIs only. I have only configured use-cases to give EAA users access to full applications or servers. I recommend reaching out to your Akamai Account Team so they can get you in contact with your local EAA expert.

/迈克

这篇关于Akamai Rest API:与Net Core Nuget或命令行一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆