Making a PHP-port, almost working.

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 athttp://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 tohttp://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

[946 byte] By [AlexMedia] at [2008-1-4]
# 1
Fipo!

Also, Good Topique!

THEINTERNETISFORPORN at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live ID: Development...
# 2
Anybody?
AlexMedia at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live ID: Development...
# 3
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.
JoshBrown-MSFT at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live ID: Development...
# 4

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

AlexMedia at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live ID: Development...
# 5
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.
JD at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live ID: Development...
# 6
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.
Navindra at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live ID: Development...
# 7

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

AlexMedia at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live ID: Development...
# 8
Is there any further info on when a working official (or unofficial) PHP code sample will be available?
theandyman at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live ID: Development...
# 9
To get it to work, on wllogin.php on line 157 replace: $token = $_POST['stoken'] with: $token = $_POST['stoken']."&sig=".$_POST['sig'];
GrahamEdgecombe at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live ID: Development...
# 10

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

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

Thanks

Joshua Davison

JD at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live ID: Development...
# 11
Thanks for your input, Graham, but there is no $_POST['sig']... that's the signature that is extracted from the received token.
AlexMedia at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live ID: Development...
# 12

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

Thanks,

JoshBrown-MSFT at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live ID: Development...

Windows Live Developer Forums

Site Classified