How to detect if an email is a Google Account?

前端 未结 6 1475
一向
一向 2021-02-19 12:16

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 r

6条回答
  •  梦如初夏
    2021-02-19 12:40

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

    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

    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

提交回复
热议问题