Topic on Extension talk:OpenID

Jump to navigation Jump to search

OpenID extension doesn't work at all?

7 (talkcontribs)


I installed the OpenID extension and everything seems to work fine. But when I choose a provider to login, all the pre-configured providers are failing. For example, Google says:

Fehler:invalid_request Error in parsing the OpenID auth request.

Also Yahoo! doesn't works:

Sorry! There is an error with the request we received from the website you are trying to use. Please try again in a few minutes. If this error persists please contact the site administrator.

At least, I want to allow login only for users comming from our own Drupal installation (which acts as an OpenID provider). Also this doesn't works, when I choose "OpenID" and enter my own URL, I got the error:

Verification error An unspecified authentication response/request error occurred during the verification of the OpenID URL

I actgivated the logs and get the output:

Start request POST /dft/index.php/Special:OpenIDLogin
USER-AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
ACCEPT-LANGUAGE: de,en-US;q=0.7,en;q=0.3
ACCEPT-ENCODING: gzip, deflate
REFERER: http://XXXX/dft/index.php?title=Special:OpenIDLogin&returnto=Main_Page
COOKIE: dftwiki_openid_provider=Google;; dftwiki_openid_provider_param_AOL=; dftwiki_openid_provider=OpenID;; mediawikiUserName=Tom; mediawikiUserID=1; vector-nav-p-tb=true; vector-nav-p-Help=true; dftwikiUserName=Tom; dftwikiLoggedOut=1397119404; dftwiki_session=o8h4jasm6smrb0m2td0iq07iup74n7uhvnshhbbgqkbs2c68nk50
CONNECTION: keep-alive
CONTENT-TYPE: application/x-www-form-urlencoded
CACHES: EmptyBagOStuff[main] SqlBagOStuff[message] SqlBagOStuff[parser]
[cookie] session_set_cookie_params: "0", "/", "", "", "1"
LocalisationCache: using store LCStore_DB
Fully initialised
Connected to database 0 at localhost
Connected to database 0 at localhost
MessageCache::load: Loading en... got from global cache
Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache::getParser
Parser: using preprocessor: Preprocessor_DOM
Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions::__construct
OpenID: Attempting login with url: https://XXXX/user/1341/identity
OpenID: no auth_request for https://XXXX/user/1341/identity
Use of User::getSkin was deprecated in MediaWiki 1.18. [Called from OpenIDHooks::onPersonalUrls in /srv/www/htdocs/dft/extensions/OpenID/OpenID.hooks.php at line 90]
OutputPage::sendCacheControl: no caching **
wfShellExec: /bin/bash '/srv/www/htdocs/dft/includes/' ''\''/usr/bin/php'\'' '\''/srv/www/htdocs/dft/maintenance/runJobs.php'\'' '\''--maxjobs'\'' '\''1'\'' &' 'MW_INCLUDE_STDERR=;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180'

This is the configuration I have in LocalSettings so far:

require_once ("$IP/extensions/OpenID/OpenID.php");
$wgTrustRoot = "http://XXXX/dft/";
$wgOpenIDOnly = true;
$wgOpenIDMode = array( 'consumer');
$wgDebugLogFile = "/tmp/wiki.log";

Any idea whats going wrong?

Wikinaut (talkcontribs)

Please indicate the versions! MediaWiki, OpenID, PHP. It is suggested you update everything to the lastest releases. (talkcontribs)

The Mediawiki + OpenID is installed on a Suse Linux Enterprise 11 SP 3 system:

- Mediawiki: 1.22.1 - OpenID: 3.42 - PHP: 5.3.17 - php-openids's Auth folder is in place - gmp, mcrypt, openssl, xml, curl is in place

Please tell me if I should provide more debug info?

Wikinaut (talkcontribs)
  • login to your server (command line)
  • try with "wget" or with cur

whether your server is able to access the OpenID provider. This is essential.

Perhaps you are using SLES in an intranet and you have to define a proxy.

Try "wget". Does this work? You need to get it working. (talkcontribs)

Yes of course, the server is on the internet and can reach everything.

Wikinaut (talkcontribs)

Please check that the Url(s) (OpenID server) you are accessing are not https Url(s), which your server *perhaps* cannot fetch, try it on the command line to make 100% sure that you do not have a proxy or certificate problem.

Ah, and update the OpenID extension (use the version from git) which is now at version 4.03. I cannot give support for older versions, sorry.

Jskang (talkcontribs)

I had same problem. And my server could not access the OpenID provider ''. The Datacenter(in south korea) where my server is located in was on check for oversea network. Now everything works fine. Thanks for the advice!!

Reply to "OpenID extension doesn't work at all?"