我可以在不使用适用于 Python 的 Google API 客户端库的情况下使用 google 身份验证吗?

use*_*003 5 python google-authentication

我正在我的网站上实施 Google 身份验证

https://developers.google.com/+/web/signin/server-side-flow

我可以在不安装Google API的情况下实现它吗(“第8步:初始化Google API客户端库并启动Google+服务”)?

例如,对于 Facebook 身份验证,我直接与 Facebook 进行通信

url = "https://graph.facebook.com/me/friends/?access_token="+access_token
response = urllib2.urlopen(url)
Run Code Online (Sandbox Code Playgroud)

我希望谷歌也能有类似的事情。

Wol*_*lph 3

是的,Google 提供了 OAuth2 身份验证,它应该可以满足您的需求。

这是文档: https: //developers.google.com/accounts/docs/OAuth2

尽管我建议使用 oauth2 库来进行身份验证,而不是重新发明轮子。

  • 谢谢你!这让我找到了网址:https://developers.google.com/accounts/docs/OAuth2WebServer#formingtheurl (3认同)