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

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

问题描述

我和这里的一些人正在创业.我们目前正在使用 Google OpenID API 来管理注册和登录我们的应用程序,但我们希望迁移到更简单的用户注册模型.为此,我们需要知道是否有办法检测电子邮件(不是 gmail)是否已经是 Google 帐户.有没有办法从 Google Single Sign-on 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 thanks for your help! :)

推荐答案

你不能那样做.我认为未经用户同意,Google 不会告诉您这一点.

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

但是,您可以通过将其用作发现 URL 来查看域是否为 Google 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

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

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