PHP Classes

Livejournal Authentication

Recommend this page to a friend!

      Simple OpenID PHP Class  >  All threads  >  Livejournal Authentication  >  (Un) Subscribe thread alerts  
Subject:Livejournal Authentication
Summary:Authentication Failed
Messages:7
Author:Bert Vierstra
Date:2007-06-17 18:21:41
Update:2010-04-14 15:57:38
 

  1. Livejournal Authentication   Reply   Report abuse  
Picture of Bert Vierstra Bert Vierstra - 2007-06-17 18:21:41
Hi,

I use this class (thanks) but it always gives authentication failed if livejournal users try to login to my site.

Is there a solution for this problem?

thanks...


  2. Re: Livejournal Authentication   Reply   Report abuse  
Picture of Dmitry Sheiko Dmitry Sheiko - 2007-07-18 13:38:18 - In reply to message 1 from Bert Vierstra
Does somebody know how to fix the trouble with Livejornal authorization?

  3. Re: Livejournal Authentication   Reply   Report abuse  
Picture of Dmitry Sheiko Dmitry Sheiko - 2007-07-18 13:59:41 - In reply to message 2 from Dmitry Sheiko
It seems I've done it by myself. So, as I understood in the OpenID specification check_authentication mode demands HTTP method POST. So, just insert following line in the begin of CURL_Request() function

if(isset($params["openid.mode"])) $method = "POST";

I have VALID responce in the script for dsheiko.livejournal.com now

  4. Re: Livejournal Authentication   Reply   Report abuse  
Picture of a a - 2008-03-06 09:08:07 - In reply to message 3 from Dmitry Sheiko
Thanks, it works fine. Anyway I am not able to retrieve user infos...

  5. Re: Livejournal Authentication   Reply   Report abuse  
Picture of Dmitry Sheiko Dmitry Sheiko - 2008-03-06 13:55:30 - In reply to message 4 from a
You are right, this is because LiveJournal doesn't return personal data. So use Google Social Graph API to get that.

  6. Re: Livejournal Authentication   Reply   Report abuse  
Picture of evgen evgen - 2010-04-14 13:34:10 - In reply to message 3 from Dmitry Sheiko
small problem with livejournal
if username have "_" a begin or end of nic as "_jon" "willis_"
server response
ERROR CODE: OPENID_NOSERVERSFOUND
ERROR DESCRIPTION: Cannot find OpenID Server TAG on Identity page.

  7. Re: Livejournal Authentication   Reply   Report abuse  
Picture of evgen evgen - 2010-04-14 15:57:38 - In reply to message 6 from evgen
class - good, lj - no