【问题标题】:How to see if domain is using Google Apps with Python如何查看域是否正在使用带有 Python 的 Google Apps
【发布时间】:2015-08-18 08:35:07
【问题描述】:

在我的 Python GAE 应用程序中,我需要知道用户的域是否是 Google Apps 域。到目前为止,我一直在向https://www.google.com/a/domainName/ServiceLogin 发送请求。如果响应包含“抱歉,您访问的域的登录页面未使用 Google Apps”,则该域未使用 Google Apps。但是,最近我注意到这种方法似乎不再起作用了。有没有替代方法?

谢谢

【问题讨论】:

    标签: python google-app-engine google-apps


    【解决方案1】:

    在您向用户请求的范围列表中包含 email。如果是 Google Apps 帐户,response token 中将有一个 hd 参数。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-12-04
    • 2013-03-15
    • 1970-01-01
    • 1970-01-01
    • 2019-11-04
    • 1970-01-01
    • 2015-03-14
    相关资源
    最近更新 更多