April 10th, 2005

  • fxool

"Digest Auth" and PHP

Hi, everyone!

I'm trying to make our LJ-powered server accessible to WAP users. In short, I have created a specific S2 style, that outputs WML, then it goes thru a PHP script to set the content-type etc. There is something else that's going on, but the reason I'm posting here is, I have to authenticate my PHP script every time it accesses any page on LJ server (../users/example/, ../users/example/friends/, ..). Only when it is authenticated, it can use that particular S2 style.

The thing is, I don't know how to authenticate. LJ uses "Digest Auth", which is basically challenge / response. For an example you might go to http://www.livejournal.com/community/lj_clients/?auth=digest
If LJ used "clear" authentication, it, of course, would be easily to implement, but how to deal with "Digest Auth" I don't know.
Can anybody help me?

And.. umm.. sorry, if this is not the right community, but I thought, you are dealing with authentication and have some ideas for me, too.