Page MenuHomePhabricator

Login fail with "Curl error: " due to 301 generated by OAuth provider
Closed, DuplicatePublic

Description

After authorizing on commons (with Extension:OAuth, as oauth provider), on the commonsarchive (with Extension:OAuthAuthentication, as oauth client):

Exception encountered, of type "Exception"
[03fd090a] /wiki/Special:OAuthLogin/finish?oauth_verifier=****bc69825860215462c4f5ef74****&oauth_token=75551e721a597bd39098dd26159e768d Exception from line 220 of /srv/mediawiki/extensions/OAuthAuthentication/libs/mwoauth-php/MWOAuthClient.php: Curl error: 
Backtrace:
#0 /srv/mediawiki/extensions/OAuthAuthentication/libs/mwoauth-php/MWOAuthClient.php(188): MWOAuthClient->makeCurlCall(string, string, boolean, boolean, MWOAuthClientConfig)
#1 /srv/mediawiki/extensions/OAuthAuthentication/libs/mwoauth-php/MWOAuthClient.php(129): MWOAuthClient->makeOAuthCall(OAuthToken, string)
#2 /srv/mediawiki/extensions/OAuthAuthentication/handlers/OAuth1Handler.php(47): MWOAuthClient->identify(OAuthToken)
#3 /srv/mediawiki/extensions/OAuthAuthentication/specials/SpecialOAuthLogin.php(66): MediaWiki\Extensions\OAuthAuthentication\OAuth1Handler->identify(OAuthToken, MWOAuthClient)
#4 /srv/mediawiki/includes/specialpage/SpecialPage.php(384): MediaWiki\Extensions\OAuthAuthentication\SpecialOAuthLogin->execute(string)
#5 /srv/mediawiki/includes/specialpage/SpecialPageFactory.php(582): SpecialPage->run(string)
#6 /srv/mediawiki/includes/MediaWiki.php(267): SpecialPageFactory::executePath(Title, RequestContext)
#7 /srv/mediawiki/includes/MediaWiki.php(566): MediaWiki->performRequest()
#8 /srv/mediawiki/includes/MediaWiki.php(414): MediaWiki->main()
#9 /srv/mediawiki/index.php(41): MediaWiki->run()
#10 {main}

Further investigation shows the curl post to https://commons.wikimedia.org/w/index.php?title=Special:OAuth/identify encountered a 301 (as a result of 155d555b83eca640), and Extension:OAuthAuthentication is unable to handle it.

Event Timeline

zhuyifei1999 raised the priority of this task from to High.
zhuyifei1999 updated the task description. (Show Details)
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 9 2015, 5:36 PM