Microsoft Online social login guide
Microsoft Online is another name for a Microsoft Live account. Live accounts are used to sign in for Microsoft services like Outlook/Hotmail and Xbox Live.
Before you begin
To use Microsoft Online for social login you must:
-
Obtain a Microsoft developer account from https://portal.azure.com.
-
Do one of the following:
- Open a previously-created Microsoft app, and copy the app ID and client ID.
- Create a new Microsoft app and copy the app ID and client ID.
-
Use the Social Login Dashboard and the Microsoft app ID and client ID to configure Microsoft Online as a social login provider.
If you're planning to use Microsoft Online as a social login identity provider, be aware that, at the present time, Microsoft Online doesn't support account merging.
Create a Microsoft Online app for social login
This section walks you through the process of creating an app that can be used to configure Microsoft Online as a social login provider. If you already have an app, see the Using an Existing Microsoft Online App for Social Login section of this documentation.
-
Log on to the Microsoft Azure developers portal (https://portal.azure.com).
-
From the portal home page, click the navigation menu, click All Services:
-
On the All services page, in the navigation pane, click Identity, and then, in the primary pane, click App registrations:
-
On the App registrations page, click New Registration:
-
On the Register an application page, enter the name of your application in the Name field:
-
In the Supported account types section, select Accounts in any organizational directory (Any Azure AD directory – Multitenant and personal Microsoft accounts (e.g., Skype, Xbox):
-
In the Redirect URI (optional) section, leave Web selected, enter your Microsoft Online redirect URI, and then click Register:
-
After your application has been created, copy the Application (client) ID:
You'll need both the client ID and the client secret in order to configure Microsoft Online as a social login provider.
-
In the Manage section of the navigation pane, click Certificates & secrets:
-
In the Client secrets section click New client secret:
-
In the Add a client secret dialog, enter a description of your client secret in the Description field, select a time-to-live value in the Expires section, and then click Add:
-
Copy the client secret. Note that this is the only time you'll be able to view the client secret. If you forget or misplace the secret it cannot be retrieved; instead, you'll have to create a new secret for the application.
-
Log off from the Azure developer center.
Use an existing Microsoft Online app for social login
If you already have a Microsoft Account app that can be used for social login, complete the following steps to retrieve the application ID and secret:
-
Log on to the Microsoft Azure developers portal (https://portal.azure.com).
-
From the portal home page, click the navigation menu, click All Services:
-
On the All services page, in the navigation pane, click Identity, and then, in the primary pane, click App registrations:
-
On the App registrations page, click the name of the application you want to use for social login:
-
On the home page for your application, copy the client ID:
-
In the Manage section of the navigation pane, click Certificates & secrets:
-
In the Client secrets section click New client secret:
Note that you must create a new secret: there is no way to retrieve the current secret for an application.
-
In the Add a client secret dialog, enter a description of your client secret in the Description field, select a time-to-live value in the Expires section, and then click Add:
-
Copy the new client secret and then log off from the Microsoft Azure developers portal.
Test Microsoft Online social login
To test Microsoft Online social login, complete the following procedure:
-
Do one of the following:
-
If you have just published your widget settings, click the Test your widget link that appears after the widget has been saved.
-
If you previously published your widget settings then, from the Social Login Dashboard's Sign-in page, click Launch a test widget.
-
-
From the Test page, click the Microsoft Online icon:
-
On the Sign in page, logon enter a valid Microsoft account name (e.g., an Outlook email address) and then click Next:
-
On the Enter Password page, enter the password for your Microsoft account:
-
On the Let this app access your info? page, click Yes:
-
If login succeeds, information returned from your Microsoft user profile is displayed in the API response preview field:
That's all you have to do.
Assign a different Microsoft Online app for social login
If you want to use a different Microsoft Online app or if you need to change your existing app, you must update the Microsoft Online provider configuration settings. To do that, complete the following procedure:
-
From the Engage Dashboard home page, click the Manage Providers icon:
-
From the Configure Providers page, click Microsoft Online.
-
Click the green Configured button to display the Microsoft Online is currently enabled dialog box:
-
To change the Microsoft account configuration, click Modify these settings.
-
In the Microsoft Online dialog box, change the Client ID and/or Client Secret as needed, and then click Save:
Although you can modify your Microsoft Online settings, you cannot delete those settings. If you delete the settings and then try to save your changes, you’ll see the error message Please enter your Consumer Key and Secret exactly as Microsoft Online shows them.
This means that you cannot “unconfigure” the provider: once configured, the Microsoft Account icon will always be shown as green (i.e., configured) in the Social Login Dashboard.
Remove Microsoft Online as a social login provider
If you no longer want to use Microsoft Online for social login, you can remove Microsoft as a social login provider by completing the following procedure:
-
Log on to your Social Login Dashboard (https://dashboard.janrain.com).
-
From the Dashboard home page, click the Manage Engage Dashboard icon.
-
From the Engage Dashboard home page, in the Widgets and SDKs section, click Sign-Ins.
-
From the Sign-in page, verify that Widget is selected and then expand Providers.
-
In the widget, click the X in the upper right corner of the Microsoft Online icon.
-
Scroll to the bottom of the page, select Save and Publish, and then click Publish. Microsoft Online no longer appears in the sign-on widget.
You must always have at least one social login provider in the widget. If you delete all the providers and then click Publish, you’ll see the error message Couldn’t save configuration: No providers.
Updated about 2 years ago