views:

32

answers:

0

Hello

I am using Joomla as CMS. Right now there is No plugin that enables windows live logins. I already downlaoded the windows live ID SDK. The PHP sample works well but I need to make some changes.

I want to have credentials to be checked without being redirected to http://login.live.com! I just need a background check which returns if the user/password was ok and the login was ok! No Session needed because this will be handled by Joomla.

Can I do something like this with live?

$curl = curl_init('https://mail.google.com/mail/feed/atom');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
//curl_setopt($curl, CURLOPT_HEADER, 1);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl, CURLOPT_USERPWD,
$credentials['username'].':'.$credentials['password']);
$result = curl_exec($curl);
$code = curl_getinfo ($curl, CURLINFO_HTTP_CODE);

If the return code is 200, auth is ok!