ratsume / lightopenid

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

http://facebook-openid.appspot.com/ fails #49

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I have tried to research the problem, but do not understand the protocol good 
enough to find the answer.

It fails in the Discovery with "No OpenID Server found at 
http://facebook-openid.appspot.com/"

I have tried the openid url at another site, and it worked.

Original issue reported on code.google.com by lan...@gmail.com on 8 Oct 2011 at 3:24

GoogleCodeExporter commented 8 years ago
I think you have to use 
"http://facebook-openid.appspot.com/[your-facebook-login]"

Original comment by themoose...@googlemail.com on 8 Oct 2011 at 4:23

GoogleCodeExporter commented 8 years ago
I have now tried your suggestion, without luck.

The OpenId URL http://facebook-openid.appspot.com/ works with DISQUS.

Could it might be using a standard not supported by lightopenid ?

Original comment by lan...@gmail.com on 8 Oct 2011 at 5:56

GoogleCodeExporter commented 8 years ago
According to Wikipedia: "Disqus is an online service that offers a centralized 
discussion platform for websites. It was founded in May 2007 and operates under 
the name of Big Head Labs Inc."

lightopenid only supports the free, non-commercial OpenID standard with some 
extensions which are also free. Disqus isn't a standard and it's commercial, so 
it will never be supported by lightopenid.

Original comment by themoose...@googlemail.com on 8 Oct 2011 at 6:18

GoogleCodeExporter commented 8 years ago
1: Go to http://www.livejournal.com/identity/login.bml
2: select OpenId
3: Type in OpenId URL: http://facebook-openid.appspot.com/
4: You will be presented with a Facebook-login

When I do the follwing in my code, it will not work:
$openid->identity = 'http://facebook-openid.appspot.com/';

Original comment by lan...@gmail.com on 8 Oct 2011 at 6:44

GoogleCodeExporter commented 8 years ago
Ok, so the reason is that this provider responds to HEAD and GET requests with 
different headers. That is: HEAD request doesn't return X-XRDS-Location, GET 
request does.

The reason for this behavior is rather simple: HEAD requests return HTTP/1.1 
405 Method Not Allowed. Probably because of the appspot platform.

Since this behavior is compatible with the Yadis protocol (in that the HEAD 
request may fail), I have changed LightOpenID's behavior to retry a request 
with GET if HEAD returns 405.

Original comment by mewp...@gmail.com on 9 Oct 2011 at 9:31