---
title: SAML Authentication
slug: singleconnect-reference-guide-3-1-0/saml-authentication
description: Learn how to integrate SAML Authentication into Single Connect using OneLogin as the external identity provider with this step-by-step guide. Discover how to configure OneLogin by adding Single Connect as an application and filling in relevant parameters.
docTags: 
createdAt: 2022-07-24T13:20:27.000Z
---

SAML is a protocol used to share security credentials across one or more network systems. **SAML Authentication** integration can be used to integrate external identity providers with Single Connect.

Single Connect can be integrated with OneLogin identity provider. OneLogin integration consists of two steps:&#x20;

1. OneLogin Configuration
2. Single Connect Configuration


### OneLogin Configuration

First you need to add Single Connect to OneLogin as an application. To add Single Connect as an application, perform the following configuration steps in OneLogin:

1. Go to th&#x65;**&#x20;Applications** section in OneLogin.
2. Click **Add App** and search for SAML Custom Connector (Advance).
3. Enter a display name (such as Single Connect) and then click **Save**.&#x20;
4. Navigate to the **Configuration** tab of the created Single Connect App.
5. Fill in the following parameters related to Single Connect:

**Audience**: singleconnecthost/samlCheck
Ex: https\://10.20.30.40/login-ui/samlCheck
**Recipient**: URL: singleconnecthost/samlRecipient&#x20;
Ex: https\://10.20.30.40/login-ui/samlRecipient
**ACS (Consumer) URL Validator**: Set “.\*” regular expression
**ACS (Consumer) URL**: Same as Recipient&#x20;
Ex: https\://10.20.30.40/login-ui/samlRecipient
**Single Logout URL**: URL: singleconnecthost/samlLogout
Ex: https\://10.20.30.40/login-ui/samlLogout


:::hint{type="info"}
The Email (SAML NameID) should be the same as the Single Connect username.
:::

- After saving the configurations above, go to the SSO tab of the added application to extract some information for filling Single Connect SAML configuration.

| **Parameter Name**           | **Example Value**                                                                                                                                                                                                                                                                                                                                |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Issuer URL**               | [https://app.onelogin.com/saml/metadata/2e0421c6-f623-4f9f-XXXX-YYY](https://app.onelogin.com/saml/metadata/2e0421c6-f623-4f9f-XXXX-YYY)                                                                                                                                                                                                         |
| **SAML 2.0 Endpoint (HTTP)** | [https://single.onelogin.com/trust/saml2/http-post/sso/2e0421c6-f623-4f9f-XXXX-YYY](https://single.onelogin.com/trust/saml2/http-post/sso/2e0421c6-f623-4f9f-XXXX-YYY)                                                                                                                                                                           |
| **SLO Endpoint (HTTP)**      | [https://single.onelogin.com/trust/saml2/http-redirect/slo/1708XXX](https://single.onelogin.com/trust/saml2/http-redirect/slo/1708XXX)                                                                                                                                                                                                           |
| **X.509 Certificate**        | -----BEGIN CERTIFICATE-----&#xD;<br />MIIEMjCCAxqgAwIBAgIUG2HXQgRMpy/pUehFqTqzw0YaelAwDQYJKoZIhvcNAQEF&#xD;<br />BQAwYTEsMCoGA1UECgwjS3JvbiBUZWxla29tdW5pa2FzeW9uIEhpem1ldGxlcmkg&#xD;<br />QXMxFTATBgNVBAsMDE9uZUxvZ2luIElkUDEaMBgGA1UEAwwRT25lTG9naW4gQWNj&#xD;<br />hkQm6mlNsRnfCipDrtz1lqf2VKgc9g==&#xD;<br />-----END CERTIFICATE-----&#xD; |

### Single Connect Configuration

After adding Single Connect as an application in OneLogin, you need to set additional configurations in Single Connect.

**Step 1**: Define the required parameters in Single Connect.

1. Navigate to **Administration&#x20;**> **System Config. Man**.
2. Open the **SAML Config** tab.
3. Fill in the following parameters related to OneLogin:

| **Parameter Name**      | **Description**                                                               | **Example Value**                                                                                                                                                                                                                                                                                                                               |
| ----------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Enable SAML**         | It must be enabled to use SAML authentication.                                |                                                                                                                                                                                                                                                                                                                                                 |
| **SAML Entity ID**      | SAML Test Connector **Issuer UR**L from the OneLogin Portal.&#xD;             | [https://app.onelogin.com/saml/metadata/2e0421c6-f623-4f9f-XXXX-YYY](https://app.onelogin.com/saml/metadata/2e0421c6-f623-4f9f-XXXX-YYY)                                                                                                                                                                                                        |
| **SAML Logout URL**     | SAML Connector **SLO Endpoint (HTTP) URL** from the OneLogin Portal&#xD;      | [https://single.onelogin.com/trust/saml2/http-redirect/slo/1708XXX](https://single.onelogin.com/trust/saml2/http-redirect/slo/1708XXX)                                                                                                                                                                                                          |
| **SAML Remote URL**     | **Personal Portal URL**                                                       | ****[https://single.onelogin.com/portal](https://single.onelogin.com/portal)****                                                                                                                                                                                                                                                                |
| **SAML URL**            | SAML Connector **SAML 2.0 Endpoint (HTTP) URL** from the OneLogin Portal&#xD; | [https://single.onelogin.com/trust/saml2/http-post/sso/2e0421c6-f623-4f9f-XXXX-YYY](https://single.onelogin.com/trust/saml2/http-post/sso/2e0421c6-f623-4f9f-XXXX-YYY)                                                                                                                                                                          |
| **SAML X509 Cert. Key** | SAML Connector **X.509 Certificate** from the OneLogin Portal.&#xD;           | \*-----BEGIN CERTIFICATE-----&#xD;<br />MIIEMjCCAxqgAwIBAgIUG2HXQgRMpy/pUehFqTqzw0YaelAwDQYJKoZIhvcNAQEF&#xD;<br />BQAwYTEsMCoGA1UECgwjS3JvbiBUZWxla29tdW5pa2FzeW9uIEhpem1ldGxlcmkg&#xD;<br />QXMxFTATBgNVBAsMDE9uZUxvZ2luIElkUDEaMBgGA1UEAwwRT25lTG9naW4gQWNj&#xD;<br />hkQm6mlNsRnfCipDrtz1lqf2VKgc9g==&#xD;<br />\*-----END CERTIFICATE----- |





::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/v7xltQvUA5I7-8MbMUQqZ_image.png" size="74" width="902" height="379" caption="SAML Configurations" position="center" showCaption="true"}

**Step 2**: Add TomcatCorsFilter to the tomcat configuration file.
After setting the required configuration in Step 1, you need t&#x6F;**&#x20;TomcatCorsFilter** in the tomcat configuration:

-  Open the web.xml file under the following directory.
  /u01/netright-tomcat/conf
- Find TomcatCorsFilter part and add Onelogin URL, as shown below in bold.&#x20;


:::Iframe{code="<filter-name>TomcatCorsFilter</filter-name>&#xD;&#xA;<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>&#xD;&#xA;<init-param>&#xD;&#xA;      <param-name>cors.allowed.origins</param-name>&#xD;&#xA;      <param-value>10.20.42.27,https://single.onelogin.com</param-value>&#xD;&#xA;</init-param>&#xD;&#xA;" iframeHeight="0"}

:::
