January 22, 2013 6:31 am

How to Login with Microsoft Live OAuth Connect in PHP

We have covered almost all OAuth connects like Facebook, Linkedin, Twitter and Google now its time to connect with Microsoft using PHP. Microsoft has launched OAuth connect few months back, Now i am going to write this tutorial how to connect with Microsoft OAuth connect, using this you can get valid user detail from Hotmail and Outlook Database. I am sure this tutorial helps you in your registration systems.

MicrosoftLogin

Previous OAuth Tutorials
Google OAuth, Facebook OAuthTwitter OAuth and
LikedIn OAuth System
The script contains two folders called oAuth and images with PHP files.

Step 1: Create Microsoft Application

Click here go to Microsoft live development area and click create application link.

microsoft_applicaton

Step 2: Add domain

You will get your Client ID and Client secret. Give a redirect callback URL.

microsoft_applicaton_1

Step 3: Application Information

Write Down your application Information.

microsoft_applicaton_2

login.php

You have to edit login.php file and add your client_id and client_secret values in this file.

 index.php

Contains PHP code and Microsoft OAuth session details.

Author Huzoor Bux

I am Huzoor Bux from Karachi (Pakistan). I have been working as a PHP Developer from last 5+ years, and its my passion to learn new things and implement them as a practice. Basically I am a PHP developer but now days exploring more in HTML5, CSS and jQuery libraries.


Tutorial Categories:
  • Very Good Tutorial,thanks PHPGang

  • Ryan Venecia

    did you ever figure this out?

  • Ryan Venecia

    did you ever figure this out?