Tutorial: Microsoft Entra single sign-on (SSO) integration with Trend Micro Web Security (TMWS)
In this tutorial, you'll learn how to integrate Trend Micro Web Security (TMWS) with Microsoft Entra ID. When you integrate TMWS with Microsoft Entra ID, you can:
- Control in Microsoft Entra ID who has access to TMWS.
- Enable your users to be automatically signed in to TMWS with their Microsoft Entra accounts.
- Manage your accounts in one central location: the Azure portal.
To get started, you need:
- A Microsoft Entra subscription. If you don't have a subscription, you can get a free account.
- A TMWS subscription that's enabled for SSO.
In this tutorial, you'll configure and test Microsoft Entra SSO in a test environment.
- TMWS supports SP initiated SSO.
Add TMWS from the gallery
To configure the integration of TMWS into Microsoft Entra ID, you need to add TMWS from the gallery to your list of managed SaaS apps.
- Sign in to the Microsoft Entra admin center as at least a Cloud Application Administrator.
- Browse to Identity > Applications > Enterprise applications > New application.
- In the Add from the gallery section, enter Trend Micro Web Security (TMWS) in the search box.
- Select Trend Micro Web Security (TMWS) in the search results and then add the app. Wait a few seconds while the app is added to your tenant.
Alternatively, you can also use the Enterprise App Configuration Wizard. In this wizard, you can add an application to your tenant, add users/groups to the app, assign roles, as well as walk through the SSO configuration as well. Learn more about Microsoft 365 wizards.
Configure and test Microsoft Entra SSO for TMWS
You'll configure and test Microsoft Entra SSO with TMWS by using a test user called B.Simon. For SSO to work, you need to establish a link between a Microsoft Entra user and the related user in TMWS.
You'll complete these basic steps to configure and test Microsoft Entra SSO with TMWS:
- Configure Microsoft Entra SSO to enable the feature for your users.
- Create a Microsoft Entra user to test Microsoft Entra single sign-on.
- Grant the Microsoft Entra test user access to TMWS.
- Configure user and group synchronization settings in Microsoft Entra ID.
- Configure TMWS SSO on the application side.
- Test SSO to verify the configuration.
Configure Microsoft Entra SSO
Complete these steps to enable Microsoft Entra SSO.
Browse to Identity > Applications > Enterprise applications > Trend Micro Web Security (TMWS) application integration page, in the Manage section, 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, select the pen button for Basic SAML Configuration to edit the settings:
In the Basic SAML Configuration section, enter values in the following boxes:
a. In the Identifier (Entity ID) box, enter a URL in the following pattern:
b. In the Reply URL box, enter this URL:
The identifier value in the previous step isn't the value that you should enter. You need to use the actual identifier. You can get this value in the Service Provider Settings for the Azure Admin Portal section on the Authentication Method page for Microsoft Entra ID from Administration > Directory Services.
TMWS expects the SAML assertions in a specific format, so you need to add custom attribute mappings to your SAML token attributes configuration. This screenshot shows the default attributes:
In addition to the attributes in the preceding screenshot, TMWS expects two more attributes to be passed back in the SAML response. These attributes are shown in the following table. The attributes are pre-populated, but you can change them to meet your requirements.
Name Source attribute
On the Set up single sign-on with SAML page, in the SAML Signing Certificate section, find Certificate (Base64). Select the Download link next to this certificate name to download the certificate and save it on your computer:
In the Set up Trend Micro Web Security (TMWS) section, copy the appropriate URL or URLs, based on your requirements:
Create a Microsoft Entra test user
In this section, you'll create a test user called B.Simon.
- Sign in to the Microsoft Entra admin center as at least a User Administrator.
- Browse to Identity > Users > All users.
- Select New user > Create new user, at the top of the screen.
- In the User properties, follow these steps:
- In the Display name field, enter
- In the User principal 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.
- Select Review + create.
- In the Display name field, enter
- Select Create.
Grant the Microsoft Entra test user access to TMWS
In this section, you'll enable B.Simon to use single sign-on by granting access to TMWS.
- Browse to Identity > Applications > Enterprise applications.
- In the applications list, select Trend Micro Web Security (TMWS).
- In the app's overview page, in the Manage section, select Users and groups:
- Select Add user, and then select Users and groups in the Add Assignment dialog box.
- In the Users and groups dialog box, select B.Simon in the Users list, and then click the Select button at the bottom of the screen.
- If you expect a role value in the SAML assertion, in the Select Role dialog box, select the appropriate role for the user from the list and then click the Select button at the bottom of the screen.
- In the Add Assignment dialog box, select Assign.
Configure user and group synchronization settings in Microsoft Entra ID
In the left pane, select Microsoft Entra ID.
Under Manage, select App registrations, and then select your new enterprise application under All applications.
Under Manage, select Certificates & secrets.
In the Client secrets area, select New client secret.
On the Add a client secret screen, optionally add a description and select an expiration period for the client secret, and then select Add. The new client secret appears in the Client secrets area.
Record the client secret value. Later, you'll enter it into TMWS.
Under Manage, select API permissions.
In the API permissions window, select Add a permission.
On the Microsoft APIs tab of the Request API permissions window, select Microsoft Graph and then Application permissions.
Locate and add these permissions:
Select Add permissions. A message appears to confirm that your settings were saved. The new permissions appear in the API permissions window.
In the Grant consent area, select Grant admin consent for your administrator account (Default Directory), and then select Yes. A message appears to confirm that the admin consent for the requested permissions was granted.
Record the Application (client) ID and Directory (tenant) ID that you see in the right pane. Later, you'll enter that information into TMWS.
Configure TMWS SSO
Complete these steps to configure TMWS SSO on the application side.
Sign in to the TMWS management console, and go to Administration > USERS & AUTHENTICATION > Directory Services.
Select here on the upper area of the screen.
On the Authentication Method page, select Microsoft Entra ID.
Select On or Off to configure whether to allow Microsoft Entra users in your organization to visit websites through TMWS if their data isn't synchronized to TMWS.
Users who aren't synchronized from Microsoft Entra ID can be authenticated only through known TMWS gateways or the dedicated port for your organization.
In the Identity Provider Settings section, complete these steps:
a. In the Service URL box, enter the Login URL value that you copied.
b. In the Logon name attribute box, enter the User claim name with the user.onpremisessamaccountname source attribute.
c. In the Public SSL certificate box, use the downloaded Certificate (Base64).
In the Synchronization Settings section, complete these steps:
a. In the Tenant box, enter the Directory (tenant) ID or Custom domain name value.
b. In the Application ID box, enter the Application (client) ID value.
c. In the Client secret box, enter the Client secret.
d. Select Synchronization schedule to synchronize with Microsoft Entra ID manually or according to a schedule. If you select Manually, whenever there are changes to Active Directory user information, remember to go back to the Directory Services page and perform manual synchronization so that information in TMWS remains current.
e. Select Test Connection to check whether the Microsoft Entra service can be successfully connected.
f. Select Save.
For more information on how to configure TMWS with Microsoft Entra ID, see Configuring Microsoft Entra Settings on TMWS.
After you configure the Microsoft Entra service and specify Microsoft Entra ID as the user authentication method, you can sign in to the TMWS proxy server to verify your setup. After the Microsoft Entra sign-in verifies your account, you can visit the internet.
TMWS doesn't support testing single sign-on, under Overview > Single sign-on > Set up Single Sign-on with SAML > Test of your new enterprise application.
Clear the browser of all cookies and then restart the browser.
Point your browser to the TMWS proxy server. For details, see Traffic Forwarding Using PAC Files.
Visit any internet website. TMWS will direct you to the TMWS captive portal.
Specify an Active Directory account (format: domain\sAMAccountName or sAMAccountName@domain), email address, or UPN, and then select Log On. TMWS sends you to the Microsoft Entra sign-in window.
In the Microsoft Entra sign-in window, enter your Microsoft Entra account credentials. You should now be signed in to TMWS.
Once you configure TMWS 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 Defender for Cloud Apps.