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

Troubles with Twitter oauth #36

Open
allaud opened this issue Aug 13, 2012 · 4 comments
Open

Troubles with Twitter oauth #36

allaud opened this issue Aug 13, 2012 · 4 comments

Comments

@allaud
Copy link

allaud commented Aug 13, 2012

Throws flaskext.oauth.OAuthException with following twitter responce:

{'status': '401', 'content-length': '565', 'x-transaction': '211c21269388bd25', 'set-cookie': 'k=10.35.2.124.1344885309124184; path=/; expires=Mon, 20-Aug-12 19:15:09 GMT; domain=.twitter.com, guest_id=v1%3A134488530913929470; domain=.twitter.com; path=/; expires=Thu, 14-Aug-2014 07:15:09 GMT, _twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCNQ%252BaSE5AToHaWQiJTFhOGExZTk3ZTVkZjhi%250AYTRiMTlmMzJmODk1NDg1YjhhIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy%250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--65ae75aa65a2f5b2787aca378c468ee8dd237619; domain=.twitter.com; path=/; HttpOnly', 'expires': 'Tue, 31 Mar 1981 05:00:00 GMT', 'x-mid': '5e909ac08c5baed8ed51d8f16b1664f6a4b327b1', 'server': 'tfe', 'last-modified': 'Mon, 13 Aug 2012 19:15:09 GMT', '-content-encoding': 'gzip', 'pragma': 'no-cache', 'cache-control': 'no-cache, no-store, must-revalidate, pre-check=0, post-check=0', 'date': 'Mon, 13 Aug 2012 19:15:09 GMT', 'x-frame-options': 'SAMEORIGIN', 'content-type': 'text/html; charset=utf-8', 'www-authenticate': 'OAuth realm="https://api.twitter.com"', 'vary': 'Accept-Encoding'}

The access_token method must be called with a request_token
/oauth/access_token?oauth_body_hash=2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D&oauth_nonce=43034051&oauth_timestamp=1344885309&oauth_verifier=RkDAfXiGWYYerIVpd1Aer5EorCfKG8ibYT0q69XME&oauth_consumer_key=HTeijARUpbSR7pXaVmGULA&oauth_signature_method=HMAC-SHA1&oauth_version=1.0&oauth_token=33175438-XRgolk9jzdkthoXkHjCJmtbtaA4o02TRdEHZaHMLG&oauth_signature=Bf6ekP5Bmg5tC%2BHUVicLKKdLZbQ%3D

@allaud
Copy link
Author

allaud commented Aug 14, 2012

Two actions can help:
1 - Change 'http' to 'https' in twitter oauth settings
2 - Be sure your local session doesn't contain twitter data

@allaud
Copy link
Author

allaud commented Sep 6, 2012

Yes
4, Sep, 2012, â 6:17 PM, ShriramK [email protected] íàïèñàë(à):

Did 1 and 2 help fix it ?


Reply to this email directly or view it on GitHub.

@jmoz
Copy link

jmoz commented Nov 2, 2012

I also have the same problem. After I authd successfully. If I try again, it then fails. Must you clear the session before a new login? And why?

@lucasvickers
Copy link

I was having similar issue, found explicitly clearing out the oauth tokens in the session between authentication requests solved my issue. Did not find similar issue in facebook, which is why it was slightly confusing.

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

3 participants