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

How to sign in (authenticate) user using this api? #44

Closed
shahfaizanali opened this issue Oct 25, 2013 · 3 comments
Closed

How to sign in (authenticate) user using this api? #44

shahfaizanali opened this issue Oct 25, 2013 · 3 comments

Comments

@shahfaizanali
Copy link

No description provided.

@iagdotme
Copy link

Great question. My understanding is that you can't do this with this app, but I am confused as to the difference between using OAUTH tokens and getting a user logging in. I've posted a question on StackOverflow relating to this, which I hope will get answered- http://stackoverflow.com/questions/19657582/using-the-twitter-api-with-an-app-using-app-oauth-keys-or-user-logging-in

It would be great if there was an option for the Twitter PHP wrapper script to allow both methods, but that might complicate what is a fantastic and simple script.

@JohnONeill
Copy link

Yeah, the class, as is, is unfit for requesting OAuth tokens (it's only supposed to be used once you have one.) There are a couple things that would have to be changed first:

  • This would have to include the oaut_callback parameters
  • This would have to remove the encoded access token after the ampersand
  • Urlencoding the values in the base string, as discussed in Critical? Missing rawurlencode #46.

@JohnONeill JohnONeill mentioned this issue Oct 31, 2013
@iagdotme
Copy link

iagdotme commented Nov 1, 2013

Thanks, John. It looks like there are two ways of connecting to the Twitter API using OAUTH:

  1. Application-only authentication - dev.twitter.com/docs/auth/application-only-auth
  2. Single-user OAuth - dev.twitter.com/docs/auth/oauth/single-user-with-examples

Are there any plans on making the class allow application only auth as well?

@J7mbo J7mbo closed this as completed May 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants