使用C#Client进行身份验证 [英] Authentication Using C# Client

查看:147
本文介绍了使用C#Client进行身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我想要求澄清以构建Bing广告应用程序  (后端服务)检索广告系列报告数据。

I would like to ask for a clarification in order to build a Bing Ads Application  (a backend service) that Retrieve campaigns report data.

我遵循这种方法:

*创建一个微软账户(MA)

*将此用户与bing广告帐户相关联(以便访问其广告系列数据)

*使用以下内容创建开发人员令牌(https://developers.bingads.microsoft.com/Account)以前创建的MA¥
*现在,我需要做什么?

**在microsoft Developer Portal上创建一个应用程序?

**是否有一种在没有同意屏幕的情况下访问api的方法(在google adwrods中我们使用服务凭证帐户执行类似的任务)

I am following this approach:
* Create a microsoft account (MA)
* Associate this user to a bing ads Account (in order to access their campaign data)
* Create a Developer token (https://developers.bingads.microsoft.com/Account) using the previously created MA
* Now, what I need to do?
** Create an application on microsoft Developer Portal?
** Is there a way to access api without consent screen (in google adwrods we use service credentials account for a similar task)

感谢您提前获得任何帮助。

Thanks for any help in advance.

Roberto

推荐答案

是的,接下来你应该注册应用程序,因为您需要OAuth的ClientId(和Web应用程序的ClientSecret)。 

Yes, next you should register an application as you'll need the ClientId (and ClientSecret for web app) for OAuth. 

对于OAuth,需要通过UI一次性同意,然后您可以通过

授权代码授予流程

For OAuth, one time consent via the UI is required, and thereafter you can use refresh tokens via Authorization Code Grant Flow.

我希望这有帮助!


这篇关于使用C#Client进行身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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