Posted on: 10/29/12 11:55am
By: Laugh
If you have enabled Twitter OAuth logins on your Geeklog site (1.8.0+) you may have found recently that it doesn't work anymore.
To fix you need to update the following file: /system/classes/oauth/twitter.auth.class.php
Please replace the following text near the beginning of the file:
Text Formatted Code
public $url_requestToken = 'https://twitter.com/oauth/request_token';
public $url_authorize = 'https://twitter.com/oauth/authenticate';
public $url_accessToken = 'https://twitter.com/oauth/access_token';
public $url_userinfo = 'http://twitter.com/account/verify_credentials.xml';
with
Text Formatted Code
public $url_requestToken = 'https://api.twitter.com/oauth/request_token';
public $url_authorize = 'https://api.twitter.com/oauth/authenticate';
public $url_accessToken = 'https://api.twitter.com/oauth/access_token';
public $url_userinfo = 'http://api.twitter.com/1/account/verify_credentials.xml';
Re: Twitter OAuth Login Problems
Posted on: 10/29/12 01:06pm
By: ::Ben
I changed the urls but I still get the "Authentication error" message...
::Ben
Re: Twitter OAuth Login Problems
Posted on: 10/29/12 02:34pm
By: Laugh
Try logging out of your Twitter account and try again.
Re: Twitter OAuth Login Problems
Posted on: 10/29/12 04:16pm
By: ::Ben
I tried on geeklog.fr but with no success.
::Ben
Re: Twitter OAuth Login Problems
Posted on: 11/01/12 10:09am
By: Laugh
Is it still updated? I have the same problem on your site. Anything in the logs?
Re: Twitter OAuth Login Problems
Posted on: 11/01/12 11:54am
By: ::Ben
The bug is still alive.
From the server logs
Text Formatted Code
124.123.89.154 - - [01/Nov/2012:15:08:20 +0100] "GET /users.php?oauth_login=twitter&oauth_token=tEGnmT7AkcHdXW29UFLMYS2mByq0llKMxtFH3F61o4&oauth_verifier=oiNJUPSjmXcURQriSkfZCDOH5NFCYGDK8Hq3SeG2MJY HTTP/1.1" 200 118 "-" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)"
Nothing in the geeklog logs.
Ben
Re: Twitter OAuth Login Problems
Posted on: 02/06/13 04:12am
By: ::Ben
Yesterday, after the upgrade to Geeklog 1.8.2 I needed to revoke authorisation from my twitter account to be able to log to http://geeklog.fr
This morning I need to revoke once more the authorisation to login with my twitter account...
Ben
Re: Twitter OAuth Login Problems
Posted on: 02/06/13 09:12am
By: Laugh
The twitter login still acts a little weird sometimes. For some reason I have had clear my browser cache before I could get it working. This should be looked in further at some point.
Re: Twitter OAuth Login Problems
Posted on: 02/16/13 04:16pm
By: Laugh
I have updated Geeklog.net with the new Twitter fix (provided by hiroron) so login problems shouldn't be an issue anymore. The fix uses the Twitter OAUTH 1.1 API (instead of 1.0).
The fix will be included in the next release of Geeklog.
Tom