如何检测如果电子邮件是一个谷歌帐户? [英] How to detect if an email is a Google Account?

查看:250
本文介绍了如何检测如果电子邮件是一个谷歌帐户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我和一些人在这里正在上启动起来。目前,我们正在使用谷歌的OpenID API来管理注册并登录到我们的应用程序,但我们希望迁移到一个更简单的用户注册模式。而对于这一点,我们需要知道,如果有,我们可以检测电子邮件(Gmail的不是)已经是一个谷歌帐户的方式。有没有办法让从谷歌单点登录API?

Me and some guys here are working on an start up. We are currently using Google OpenID API to manage registration and login to our app, but we want to migrate to a easier user registration model. And for this, we need to know if there is a way we can detect if an email (not gmail) is already a Google Account. Is there a way to get this info from the Google Single Sign-on API?

previous感谢您的帮助! :)

Previous thanks for your help! :)

推荐答案

您不能这样做。我不认为谷歌可以告诉你,未经用户许可。

You cannot do that. I don't think Google could tell you that without user consent.

您可以,但是,看看是否域是通过使用谷歌Apps域以此作为发现网址:
https://www.google.com/accounts/o8 /site-xrds?hd=mail.moztw.org

You could, however, see if the domain is a a Google Apps domain by use this as the Discovery URL: https://www.google.com/accounts/o8/site-xrds?hd=mail.moztw.org

指出,该域的管理员可能无法正常安装域OpenID的支持。我的幻灯片进行了详细讨论了这一点:
http://www.slideshare.net/timdream/google-apps-account -as-openid的

Noted that the admin of the domain might not properly installed OpenID support for the domain. My slide have discussed this in detail: http://www.slideshare.net/timdream/google-apps-account-as-openid

这篇关于如何检测如果电子邮件是一个谷歌帐户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆