Tutorial: Azure Active Directory single sign-on (SSO) integration with Workplace by Facebook
In this tutorial, you'll learn how to integrate Workplace by Facebook with Azure Active Directory (Azure AD). When you integrate Workplace by Facebook with Azure AD, you can:
- Control in Azure AD who has access to Workplace by Facebook.
- Enable your users to be automatically signed-in to Workplace by Facebook with their Azure AD accounts.
- Manage your accounts in one central location - the Azure portal.
To get started, you need the following items:
- An Azure AD subscription. If you don't have a subscription, you can get a free account.
- Workplace by Facebook single sign-on (SSO) enabled subscription.
Facebook has two products, Workplace Standard (free) and Workplace Premium (paid). Any Workplace Premium tenant can configure SCIM and SSO integration with no other implications to cost or licenses required. SSO and SCIM are not available in Workplace Standard instances.
In this tutorial, you configure and test Azure AD SSO in a test environment.
- Workplace by Facebook supports SP initiated SSO
- Workplace by Facebook supports just-in-time provisioning
- Workplace by Facebook supports automatic User Provisioning
- Workplace by Facebook Mobile application can now be configured with Azure AD for enabling SSO. In this tutorial, you configure and test Azure AD SSO in a test environment.
Adding Workplace by Facebook from the gallery
To configure the integration of Workplace by Facebook into Azure AD, you need to add Workplace by Facebook from the gallery to your list of managed SaaS apps.
- Sign in to the Azure portal using either a work or school account, or a personal Microsoft account.
- On the left navigation pane, select the Azure Active Directory service.
- Navigate to Enterprise Applications and then select All Applications.
- To add new application, select New application.
- In the Add from the gallery section, type Workplace by Facebook in the search box.
- Select Workplace by Facebook from results panel and then add the app. Wait a few seconds while the app is added to your tenant.
Configure and test Azure AD SSO for Workplace by Facebook
Configure and test Azure AD SSO with Workplace by Facebook using a test user called B.Simon. For SSO to work, you need to establish a link relationship between an Azure AD user and the related user in Workplace by Facebook.
To configure and test Azure AD SSO with Workplace by Facebook, perform the following steps:
- Configure Azure AD SSO - to enable your users to use this feature.
- Configure Workplace by Facebook SSO - to configure the Single Sign-On settings on application side.
- Create Workplace by Facebook test user - to have a counterpart of B.Simon in Workplace by Facebook that is linked to the Azure AD representation of user.
- Test SSO - to verify whether the configuration works.
Configure Azure AD SSO
Follow these steps to enable Azure AD SSO in the Azure portal.
In the Azure portal, on the Workplace by Facebook application integration page, find the Manage section and select Single sign-on.
On the Select a Single sign-on method page, select SAML.
On the Set up Single Sign-On with SAML page, click the pencil icon for Basic SAML Configuration to edit the settings.
On the Basic SAML Configuration section, enter the values for the following fields:
a. In the Sign on URL (found in WorkPlace as the Recipient URL) text box, type a URL using the following pattern:
b. In the Identifier (Entity ID) (found in WorkPlace as the Audience URL) text box, type a URL using the following pattern:
c. In the Reply URL (found in WorkPlace as the Assertion Consumer Service) text box, type a URL using the following pattern:
These values are not the real. Update these values with the actual Sign-On URL, Identifier and Reply URL. See the Authentication page of the Workplace Company Dashboard for the correct values for your Workplace community, this is explained later in the tutorial.
On the Set up Single Sign-On with SAML page, in the SAML Signing Certificate section, find Certificate (Base64) and select Download to download the certificate and save it on your computer.
On the Set up Workplace by Facebook section, copy the appropriate URL(s) based on your requirement.
Create an Azure AD test user
In this section, you'll create a test user in the Azure portal called B.Simon.
- From the left pane in the Azure portal, select Azure Active Directory, select Users, and then select All users.
- Select New user at the top of the screen.
- In the User properties, follow these steps:
- In the Name field, enter
- In the User name field, enter the firstname.lastname@example.org. For example,
- Select the Show password check box, and then write down the value that's displayed in the Password box.
- Click Create.
- In the Name field, enter
Assign the Azure AD test user
In this section, you'll enable B.Simon to use Azure single sign-on by granting access to Workplace by Facebook.
- In the Azure portal, select Enterprise Applications, and then select All applications.
- In the applications list, select Workplace by Facebook.
- In the app's overview page, find the Manage section and select Users and groups.
- Select Add user, then select Users and groups in the Add Assignment dialog.
- In the Users and groups dialog, select B.Simon from the Users list, then click the Select button at the bottom of the screen.
- If you are expecting a role to be assigned to the users, you can select it from the Select a role dropdown. If no role has been set up for this app, you see "Default Access" role selected.
- In the Add Assignment dialog, click the Assign button.
Configure Workplace by Facebook SSO
To automate the configuration within Workplace by Facebook, you need to install My Apps Secure Sign-in browser extension by clicking Install the extension.
After adding extension to the browser, click on Set up Workplace by Facebook will direct you to the Workplace by Facebook application. From there, provide the admin credentials to sign into Workplace by Facebook. The browser extension will automatically configure the application for you and automate steps 3-5.
If you want to setup Workplace by Facebook manually, open a new web browser window and sign into your Workplace by Facebook company site as an administrator and perform the following steps:
As part of the SAML authentication process, Workplace may utilize query strings of up to 2.5 kilobytes in size in order to pass parameters to Azure AD.
On the left navigation panel, navigate to Security > Authentication tab.
a. Check the Single-sign on(SSO) option.
b. Click on +Add new SSO Provider.
Make sure you check the Password login checkbox too. Admins may need this option for login while doing the certificate rollover in order to stop themselves getting locked out.
Under Authentication tab, select Single-Sign On (SSO) and perform the following steps:
a. In the Name of the SSO Provider, enter the SSO instance name like Azureadsso.
b. In SAML URL textbox, paste the value of Login URL, which you have copied from Azure portal.
c. In SAML Issuer URL textbox, paste the value of Azure AD Identifier, which you have copied from Azure portal.
d. Open your base-64 encoded certificate in notepad downloaded from Azure portal, copy the content of it into your clipboard, and then paste it to the SAML Certificate textbox.
e. Copy the Audience URL for your instance and paste it in Identifier (Entity ID) textbox in Basic SAML Configuration section on Azure portal.
f. Copy the Recipient URL for your instance and paste it in Sign on URL textbox in Basic SAML Configuration section on Azure portal.
g. Copy the ACS (Assertion Consumer Service) URL for your instance and paste it in Reply URL textbox in Basic SAML Configuration section on Azure portal.
h. Scroll to the bottom of the section and click the Test SSO button. This results in a popup window appearing with Azure AD login page presented. Enter your credentials in as normal to authenticate.
Troubleshooting: Ensure the email address being returned back from Azure AD is the same as the Workplace account you are logged in with.
i. Once the test has been completed successfully, scroll to the bottom of the page and click the Save button.
j. All users using Workplace will now be presented with Azure AD login page for authentication.
SAML Logout Redirect (optional) -
You can choose to optionally configure a SAML Logout Url, which can be used to point at Azure AD's logout page. When this setting is enabled and configured, the user will no longer be directed to the Workplace logout page. Instead, the user will be redirected to the url that was added in the SAML Logout Redirect setting.
Configuring reauthentication frequency
You can configure Workplace to prompt for a SAML check every day, three days, week, two weeks, month or never.
The minimum value for the SAML check on mobile applications is set to one week.
You can also force a SAML reset for all users using the button: Require SAML authentication for all users now.
Create Workplace by Facebook test user
In this section, a user called B.Simon is created in Workplace by Facebook. Workplace by Facebook supports just-in-time provisioning, which is enabled by default.
There is no action for you in this section. If a user doesn't exist in Workplace by Facebook, a new one is created when you attempt to access Workplace by Facebook.
If you need to create a user manually, Contact Workplace by Facebook Client support team.
In this section, you test your Azure AD single sign-on configuration with following options.
Click on Test this application in Azure portal. This will redirect to Workplace by Facebook Sign-on URL where you can initiate the login flow.
Go to Workplace by Facebook Sign-on URL directly and initiate the login flow from there.
You can use Microsoft My Apps. When you click the Workplace by Facebook tile in the My Apps, this will redirect to Workplace by Facebook Sign-on URL. For more information about the My Apps, see Introduction to the My Apps.
Test SSO for Workplace by Facebook (mobile)
Open Workplace by Facebook Mobile application. On the sign in page, click on LOG IN.
Enter your business email and click CONTINUE.
Click JUST ONCE.
Finally after successful sign in, the application homepage will be displayed.
Once you configure Workplace by Facebook you can enforce Session control, which protects exfiltration and infiltration of your organization's sensitive data in real time. Session control extends from Conditional Access. Learn how to enforce session control with Microsoft Cloud App Security