本文介绍了ClientLogin替代身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于Google将ClientLogin API列为弃用,推荐的替代选择是什么?
在我的情况下,我需要一台服务器来使用我拥有的凭据进行身份验证和发布。像OAuth这样的替代品在这种情况下不起作用。 解决方案

身份验证方法根据您的应用程序的情况而有所不同。 报告的情况是:


  • 登录

  • Web服务器应用程序

  • 客户端应用程序
  • 安装的应用程序设备

  • 服务帐户



可能是有用的(如果你提供更多关于你的意思的详细信息在我的情况下,我需要一个服务器进行身份验证我可以更精确地说明这一点)。

然而,推荐的ClientLogin替代方法是。


Since Google lists the ClientLogin API as deprecated what is the recommended alternative?In my case I need a server to authenticate and post things using credentials which I own. Alternatives like OAuth won't work in this context

解决方案

The authentication method varies based on the scenario of your application. The scenarios reported by Google documentation are:

  • Login
  • Web Server Applications
  • Client-side Applications
  • Installed Applications Devices
  • Service Accounts

In your case, the Web Server Application scenario might be useful (if you give more details about what do you mean for "In my case I need a server to authenticate" I can be more precise about this point).

However, the recommended alternative to ClientLogin is OAuth2.

这篇关于ClientLogin替代身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-10 06:56