Skip to main content

Posts

Showing posts from February, 2018

Login with Microsoft Live Account PHP

How to Login with Microsoft Live Account PHP This post explains you how to implement login Microsoft Live account using PHP. For login ,  we need  Client Secret Key and Client ID . Click Here To create Microsoft application that will provide client id and password. Open the above url and fill "app name" and "redirect url" . Application id is your client ID and application secret is client secret key. Our api is created successfully. Now we need to create 2 php pages one for login and second one for receive user data as response from microsoft app. First create a link on your login page , that will redirect to user on our microsoft login page(mslogin). <a href="mslogin.php">Login with Microsoft</a> Then create a page mslogin.php and paste below code mslogin.php <?php $client_id = "YOUR-CLIENT-ID"; $redirect_uri = "https://your-site.com/response.php"; //you can also use localhost url for testing