Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 09:43 am EST

Geeklog Forums

Twitter OAuth Login Problems


Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
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';
 



One of the Geeklog Core Developers.
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
I changed the urls but I still get the "Authentication error" message...

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
Try logging out of your Twitter account and try again.
One of the Geeklog Core Developers.
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
I tried on geeklog.fr but with no success.

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
Is it still updated? I have the same problem on your site. Anything in the logs?
One of the Geeklog Core Developers.
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
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
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
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
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
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.
One of the Geeklog Core Developers.
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
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
One of the Geeklog Core Developers.
 Quote

All times are EST. The time is now 09:43 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content