简体   繁体   English

使用auth0从Twitter创建一个新用户,获取零电子邮件

[英]Creating a new user from Twitter using auth0 get nil email

I am using auth0 for my rails application,I tried to sign in with social connection using auth0, this works fine with google and facebook but when I tried with twitter I am getting blank email for user and not able to sign in with the user having blank email. 我正在为我的Rails应用程序使用auth0,我尝试使用auth0进行社交连接登录,这在googlefacebook上都可以正常使用,但是当我尝试使用twitter时,我收到了用户的空白电子邮件,并且无法通过具有空白电子邮件。

Here is the response which I am getting 这是我得到的回应

  {  
    "name": "XXXX",  
    "picture": "XXXX",   
    "lang": "en",  
    "screen_name": "XXXX",
    "clientID": "XXXXXX",  
    "user_id": "XXXXX",  
    "nickname": "XXXX",  
    "identities": [  
     {
        "access_token": "XXXX",
        "access_token_secret": "XXXX",
        "provider": "twitter",
        "user_id": XXXX,
        "connection": "twitter",
         "isSocial": true
     }   
   ], 
   "created_at": "2015-04-07T06:00:51.515Z" 
  }

How do I get user email for twitter using auth0 如何使用auth0获取Twitter用户电子邮件

Not possible. 不可能。 Twitter API doesn't give email address of the user. Twitter API不提供用户的电子邮件地址。

Is there a way to get an user's email ID after verifying his/her Twitter identity using OAuth? 使用OAuth验证用户的Twitter身份后,是否可以获取用户的电子邮件ID?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM