如何使用特定的电子邮件地址强制登录oauth?

时间:2014-07-31 12:36:24

标签: oauth-2.0 twitter-oauth google-oauth facebook-oauth

假设我希望特定用户使用特定的电子邮件地址登录。

dave.myservice.com - > dave@example.com

所以,如果你访问这个页面" dave.myservice.com" ,我希望我的申请让他用dave@example.com登录,而不是用他的其他个人帐户登录。

这种情况可能吗?

提前致谢!

1 个答案:

答案 0 :(得分:1)

对于Google Oauth,您可以使用login_hint参数指定您希望用户登录的电子邮件(cf https://developers.google.com/accounts/docs/OAuth2WebServer#formingtheurl