更新继承的应用程序以使用Authroization 2.0 [英] Updating inherited application to use Authroization 2.0

查看:77
本文介绍了更新继承的应用程序以使用Authroization 2.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继承了我现在支持的应用程序,我在更新报告访问权时遇到了问题

I inheritied an application that i now support and I am having issues updating access to reporting

这是什么的例子我有但无法获得令牌。我不理解授权标题中的授权。我掩盖了所有的重要信息。我的问题是我在问号是什么时使用

This is example of what I have but unable to get a token. I dont understand the Authorization in the Authorization header. I have masked all the relivant information. My question is what I use where the Question marks are

推荐答案

请注意,如果这是本机应用程序,例如仅限桌面,然后您可以使用OAuthDesktopMobileAuthCodeGrant而不是OAuthWebAuthCodeGrant。在这种情况下,您也不需要设置RedirectionUri或ClientSecret。无论哪种方式,您都可以将验证
设置为您的OAuthDesktopMobileAuthCodeGrant或OAuthWebAuthCodeGrant实例。在此之前,您需要调用RequestAccessAndRefreshTokensAsync,如

这个C#示例
(我们没有可用的VB示例)。有关详细信息,请参阅
授权代码授予流程

使用Bing Ads SDK进行身份验证
。 

Please note, if this is a native app e.g., desktop only, then you can use OAuthDesktopMobileAuthCodeGrant instead of OAuthWebAuthCodeGrant. In that case you also would not need to set RedirectionUri or ClientSecret. Either way though, you'll set Authentication to either your OAuthDesktopMobileAuthCodeGrant or OAuthWebAuthCodeGrant instance. Before you do that, you need to call RequestAccessAndRefreshTokensAsync as shown in this C# example (we don't have a VB sample available). For more details see Authorization Code Grant Flow and Authentication with Bing Ads SDKs

我希望这会有所帮助,

Eric


这篇关于更新继承的应用程序以使用Authroization 2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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