Alex Media


Hi,

I've recently downloaded the package from Connect and saw that there was a C# and a Ruby example, but I use PHP in stead of Ruby, so I decided to port it. I use mcrypt for the AES128-part, because I couldn't find any other library that can do AES128.

You can test it at http://admin.ownedia.com/liveid, but it doesn't completely work yet, the signature is invalid, it says. If you want to view the sources, browse to http://admin.ownedia.com/liveid/source.

The output you see after logging in is a failed attempt to split() the unencrypted token, the generated signature and the (fatal) error message that the signature did not match.

Could somebody help me please I'm nearly there, I think.

Greetings,

Alex




Re: Making a PHP-port, almost working.

THEINTERNETISFORPORN


Fipo!

Also, Good Topique!





Re: Making a PHP-port, almost working.

Alex Media

Anybody




Re: Making a PHP-port, almost working.

Josh Brown - MSFT

I can tell you that PHP is on our list of platforms for which sample code will eventually be provided. Stay tuned for more information.




Re: Making a PHP-port, almost working.

Alex Media

Ok, thank you Smile

Can you give an estimate on when a PHP-version will be available

And could you work out an alternative for the iframe being currently used, because <iframe> is not allowed within HTML 4.01 Strict and I would like my sites to validate, even when using the Live ID-sample Smile





Re: Making a PHP-port, almost working.

?JD?

I've just been accepted and will be looking towards creating a PHP app. If one is due in the near future, I would love to hear about it and when it will be released.



Re: Making a PHP-port, almost working.

Navindra

Nice work, Alex! We do have a PHP version that is working internally as well. I'll take a look at your port when I have time to see if I can figure out what is going wrong. Can't make any promises or definitive statements, but if all goes well on our side, we do hope to release the PHP version in the main release.



Re: Making a PHP-port, almost working.

Alex Media

That would be fantastic Smile

Btw, if you would like to contact me or anything:

E-mail: alex AT alex-media DOT nl

Messenger: msn AT alex-media DOT nl

Smile





Re: Making a PHP-port, almost working.

the andyman

Is there any further info on when a working official (or unofficial) PHP code sample will be available





Re: Making a PHP-port, almost working.

Graham Edgecombe

To get it to work, on wllogin.php on line 157 replace: $token = $_POST['stoken'] with: $token = $_POST['stoken']."&sig=".$_POST['sig'];




Re: Making a PHP-port, almost working.

?JD?

So now im wondering... does it actually work with that change

If it does... I'd really like to use it

Thanks

Joshua Davison





Re: Making a PHP-port, almost working.

Alex Media

Thanks for your input, Graham, but there is no $_POST['sig']... that's the signature that is extracted from the received token.



Re: Making a PHP-port, almost working.

Josh Brown - MSFT

Be patient folks. PHP and other versions will be published soon.

Thanks,