Adding openid to site
| 0 comments | openidHello!
You may or may not know that I use dyl.anjon.es as an OpenID- well I have been thinking of having a login portal on my site so people can use my projects for their own accounts.
For example, the LastFM app can show your info, you can access your flickr photos and share them etc.
So first thing to do was to get me able to authenticate someone via OpenID. Yesterday I was trying a few different php libraries to no real avail - there was always some include missing or in the wrong place.
Anywhom I decided on going to a 3rd party authenticator. This has meant there's a lot of to-ing the frowning of tokens and keys and what not.
On the bus this morning, I hope I have found the solution I was looking for. I needed to get the XML result of a http post:
$reply = curl_exec($ch);
$xml = simplexml_load_string($reply);
This apparently won't work if the response is an array but I'll give it a bash in a bit in Leeds