Blog

Hooray!!!

| 0 comments | openid

Well, I have got it to work - OpenID on my site, give it a go!

I used the library that was the original suggestion offa the openid enabled site. It didn't take much editing, I have just used the example file. At the moment, when you initially log in you get given an id and your data is stored from sreg into my db, you the get a cookie which lets me know whom you are! If you sign in again, you have the same number and your details are stored.

A few things with this at the moment, your id will expire in 30mins; your data is not updated if it changes, some permissions need to be added and a db fetch function for name, birthday etc!!


Adding openid to site

| 0 comments | openid

Hello!

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