chrismessina / diso

Automatically exported from code.google.com/p/diso
0 stars 0 forks source link

Cannot log in to one Wordpress site with another's OpenID #99

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Visit one WordPress (e.g. http://ubuntero.org/wp-login.php)
2. Log in with another WordPress OpenID provider (e.g. andrewski.net)
3. Redirects to provider site, asks for confirmation.
4. Returns to site, error message: "OpenID login failed: Server denied
check_authentication".

What is the expected output? What do you see instead?
I expect to use my WordPress as an OpenID provider to another WordPress
site, but I get the error message: "OpenID login failed: Server denied
check_authentication".

What version of the product are you using? On what operating system?
WordPress 2.6.3 and the OpenID plugin 3.1.4 on both sites. Both are hosted
on 1&1 servers.

Please provide any additional information below.
I am the site administrator for both sites, so I would be happy to provide
accounts or test anything on either site if it helps.

Original issue reported on code.google.com by andrew.c...@gmail.com on 7 Nov 2008 at 4:09

GoogleCodeExporter commented 9 years ago
I have also gotten the error "OpenID login failed: Server denied
check_authentication" but I was trying to log in using my domain which is 
delegated
to myopenid.com. I haven't been able to reproduce the problem consistently 
however.

Original comment by mike.english on 20 Dec 2008 at 8:32

GoogleCodeExporter commented 9 years ago
I have a similar configuration: Two Wordpress 2.7 sites with OpenID plugin 
3.1.4.

I get the same error message when following the same steps to reproduce the 
problem,
consistently.

I also noticed the following errors in my error log:

[Wed Dec 24 18:00:46 2008] [error] [client xxx.xxx.xxx.xxx] [OpenID] Library 
Error 2:
domxml_open_mem() [<a 
href='function.domxml-open-mem'>function.domxml-open-mem</a>]:
Entity 'laquo' not defined\n in 
/xxx/wp-content/plugins/openid/Auth/Yadis/XML.php
:149, referer: http://xxx 
/wp-login.php?redirect_to=http%3A%2F%2Fxxx%2Fwp-admin%2F
[Wed Dec 24 18:00:46 2008] [error] [client xxx.xxx.xxx.xxx] [OpenID] Library 
Error 2:
dl() [<a href='function.dl'>function.dl</a>]: Dynamically loaded extentions 
aren't
enabled in /xxx/wp-content/plugins/openid/Auth/Yadis/XML.php :352, referer:
http://xxx/wp-login.php?redirect_to=http%3A%2F%2Fxxx%2Fwp-admin%2F
[Wed Dec 24 18:00:46 2008] [error] [client xxx.xxx.xxx.xxx] [OpenID] Library 
Error 2:
dl() [<a href='function.dl'>function.dl</a>]: Dynamically loaded extentions 
aren't
enabled in /xxx/wp-content/plugins/openid/Auth/Yadis/XML.php :352, referer:
http://xxx/wp-login.php?redirect_to=http%3A%2F%2Fxxx%2Fwp-admin%2F

Original comment by stooopid...@gmail.com on 25 Dec 2008 at 2:15

GoogleCodeExporter commented 9 years ago
I traced through the scripts and found my root cause to be in function
"Auth_OpenID_GenericConsumer(&$store)" of Auth/OpenID/Consumer.php, at line 618:

$this->_use_assocs = ($this->store ? true : false);

Although $this->store points to an object, the expression evaluates to false, 
even
when I rewrite it as a standard if block. This resulted in my DB store not used 
to
store the association. I then changed it to 

$this->_use_assocs = !is_null($this->store);

and it worked.

I'm not sure if your root cause is the same but you can give this workaround a 
try.

Original comment by stooopid...@gmail.com on 25 Dec 2008 at 5:24

GoogleCodeExporter commented 9 years ago

Original comment by wnorris on 4 Jan 2009 at 6:48

GoogleCodeExporter commented 9 years ago
I've submitted a patch upstream for the php-openid library.

Original comment by wnorris on 4 Jan 2009 at 7:32

GoogleCodeExporter commented 9 years ago
I'm surprised this was reported and known in January but there hasn't been a
wp-openid release with this fix (regardless of whether or not it has been 
included
upstream).

Would you consider doing a release with this fix?

Original comment by jeff.waugh on 15 Sep 2009 at 1:43