Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twitter e-mail validation #2

Open
alex-golubtsov opened this issue Jul 31, 2012 · 6 comments
Open

Twitter e-mail validation #2

alex-golubtsov opened this issue Jul 31, 2012 · 6 comments

Comments

@alex-golubtsov
Copy link

Before send request to twitter, I ask user for his e-mail. Can I add an extra parameter(like scope in google strategy) to send to twitter e-mail and validate it. I expect to receive in response something like this:
"email_verified" => 1(or 0)

Can I do this? Or how can I validate e-mail in other way?

Thanks.

@uzyn
Copy link
Member

uzyn commented Jul 31, 2012

That's a good enhancement request.

As Twitter's OAuth contains no extra parameters for specifying state, the only way that can be done is by appending parameters to oauth_callback parameter.

Due to the parameter being handled internally by Opauth's TwitterStrategy, the extra parameters would be lost when Opauth does a callback to parent app.

I have marked this issue as enhancement and will be worked on to add state support.

Thanks @alex21 for your feedback and suggestion.

@alex-golubtsov
Copy link
Author

Thank you for answer. Waiting for this enhancement:)

@ceeram
Copy link
Member

ceeram commented Feb 17, 2013

From what i understand of twitter api, there is no way you can obtain or validate an email address by twitter. Can you provide a link where i can info on this subject?

@uzyn
Copy link
Member

uzyn commented Feb 19, 2013

@ceeram I believe this story is asking for state support (or I believe can be implemented with state support – uzyn/opauth#21)

State support simply allows you to pass in a string and obtain a string back after all the callbacks and redirects.

@ceeram
Copy link
Member

ceeram commented Jul 4, 2013

Twitter no longer allows variable get query parameters in callback urls, the url must match exactly the one you had set in the app settings.
Opauth strategies can handle additional parameters like facebooks state parameter:

https://github.com/opauth/facebook/blob/wip/1.0/Strategy.php#L49

So it is very much dependent on the strategy provider

@ceeram
Copy link
Member

ceeram commented Jul 4, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants