【问题标题】:Can I use google authentication without using Google APIs client library for Python?我可以在不使用 Python 的 Google API 客户端库的情况下使用 Google 身份验证吗?
【发布时间】:2014-05-27 13:16:51
【问题描述】:

我正在我的网站上实施 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)

我希望 Google 也有类似的东西。

【问题讨论】:

    标签: python google-authentication


    【解决方案1】:

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

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

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

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-04-08
    • 1970-01-01
    • 2019-01-10
    • 2021-07-14
    • 2018-08-17
    • 1970-01-01
    • 2021-07-23
    相关资源
    最近更新 更多