问题描述
您好
我们有一个使用Bing Ads API下载每日报告的Windows服务应用程序。它在后台运行,无需任何用户交互。现在,通过Bing Ads API将授权模式更改为OAuth,是否有办法访问
Bing Ads API而无需请求用户明确输入密码并在网络浏览器中同意?
We have a windows service application that is using Bing Ads API to download daily reports. It runs in the background without requiring any user interaction. Now, with Bing Ads API changing authorization model to OAuth, is there any way to get access to Bing Ads API without requesting user to explicitly enter password and give consent in the web browser?
推荐答案
我们有一个使用Bing Ads API下载的Windows服务应用程序每日报道。它在后台运行,无需任何用户交互。现在,Bing Ads API将授权模式更改为OAuth,是否有办法访问
Bing Ads API而无需请求用户明确输入密码并在网络浏览器中同意?
We have a windows service application that is using Bing Ads API to download daily reports. It runs in the background without requiring any user interaction. Now, with Bing Ads API changing authorization model to OAuth, is there any way to get access to Bing Ads API without requesting user to explicitly enter password and give consent in the web browser?
没有。然而,应用程序只需要通过基于浏览器的同意,之后您可以使用访问令牌(并在令牌过期时刷新令牌)作为永久性对API调用进行身份验证的方式。
There isn't. However the app only needs to go through the browser based consent once after which you can use access tokens (and refresh tokens when they expire) as the ways you authenticate against the API calls in perpetuity.
这篇关于Windows服务应用的OAuth身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!