SSO authentication setup
This topic describes how to set up SSO authentication for logging in to Connect.
Note: Using the Open Sign-on Protocol (OSP) with an Active Directory LDAP server is the only certified SSO configuration.
Prerequisites
Prepare the following for SSO configuration.
LDAP server preparation
Preparation | Details |
---|---|
Connection prerequisites for the LDAP server |
Prepare the following for the connections to the LDAP server:
|
Authorization schemes |
There are two possible scenarios with SSO configuration:
|
Local DNS preparation
The capability of OSP to handle full names in incoming URLs depends on local DNS configuration. Therefore, ensure proper DNS configuration in the system where Connect with OSP is installed.
-
Make sure that the FDQN (for example, host.domain.com) is resolvable and reachable from outside and inside of the host with a ping command. For example, ping host.domain.com.
-
Make sure that the host's DNS configuration is set properly.
OS Details Windows -
Run
cmd.exe
. -
Run the following command:
echo %COMPUTERNAME%.%USERDNSDOMAIN%
-
Ensure that you see the FDQN.
Linux -
Open a terminal.
-
Run the following command:
hostname --all-fqdns
-
Ensure that you see the FDQN from the host list.
-
Configure SSL/TLS in Tomcat
Set up the SSL/TLS configuration in Tomcat as follows:
-
Make sure that there is a JKS/PKCS12 keystore file with a certificate for the specific host name.
For example, if the host name is host.domain.com, you should have the certificate for this specific name in this keystore.
For details about SSL/TLS configuration, see SSL/TLS configuration.
-
Verify that inbound HTTPS connections work, for example with the URL: https://host.domain.com/ConnectWeb.
Configure SSL trust in JRE
Make sure that the installed certificate is trusted by Connect itself. For details, see Install SSL certificates.
Configure OSP server application
Follow the steps below to configure the OSP server application.
-
Open the <install-dir\>\AppData\osp-server-configuration\osp-server-configuration.properties file in a text editor.
-
Set the following properties in the file.
Property Description com.microfocus.mfc.osp.ds-ldap.host The LDAP server host name or IP address. com.microfocus.mfc.osp.ds-ldap.use-tls Set to true when connecting to a secure port. com.microfocus.mfc.osp.ds-ldap.port The LDAP server port number. com.microfocus.mfc.osp.ds-ldap.service-user-dn The LDAP service user DN. com.microfocus.mfc.osp.ds-ldap.service-user-pwd The LDAP service user's password.
Note: The password can be encrypted using the mfcEncryptPassword utility. For details, see Encrypt passwords with mfcEncryptPassword.
com.microfocus.mfc.osp.as-ldap.users-container-dn DN for users' organization unit. com.microfocus.mfc.osp.authorization.enabled Set to true to enable authorization through LDAP group membership.
Set to false to disable authorization through LDAP group membership.
com.microfocus.mfc.osp.authorization.site-admins-ag-dn
com.microfocus.mfc.osp.authorization.admins-ag-dn
com.microfocus.mfc.osp.authorization.users-ag-dn
DNs for Site, Admin, and User role groups respectively. com.microfocus.mfc.oauth.client.id Random client ID value. Use only alphabetic characters in different cases. For example, randomUserName, RANDOMUserName, randomUserName. com.microfocus.mfc.oauth.client.secret Random client secret.
Note: The secret can be encrypted using the mfcEncryptPassword utility. For details, see Encrypt passwords with mfcEncryptPassword.
com.microfocus.mfc.oauth.client.callback-host Connect host name. com.microfocus.mfc.signing-keystore.key.pwd
com.microfocus.mfc.signing-keystore.pwd
com.microfocus.mfc.encrypting-keystore.key.pwd
com.microfocus.mfc.encrypting-keystore.pwd
Passwords for the generated auxiliary keystores with keys (osp-encrypting-keys.pkcs12 and osp-signing-keys.pkcs12). -
Before the first start with the new configuration, from the <install-dir\>\AppData\osp-server-configuration directory, remove the osp-encrypting-keys.pkcs12 and osp-signing-keys.pkcs12 files.
Configure OSP filter
Follow the steps below to configure the OSP filter.
-
Open the <install-dir>\AppData\osp-filter-configuration.properties file in a text editor.
-
Set the following properties.
Property Description osp-filter-enabled Set to true to enable OSP SSO filter. osp-server-host Connect host name. osp-server-port Connect TLS port. For example, 443. osp-client-id
The same as the value of com.microfocus.mfc.oauth.client.id. osp-client-secret The same as the value of com.microfocus.mfc.oauth.client.secret.
Note: The secret can be encrypted using the mfcEncryptPassword utility. For details, see Encrypt passwords with mfcEncryptPassword.
Validate SSO authentication
Verify if SSO authentication is successfully set up.
-
Restart the server.
-
Log in to Connect with your LDAP login name and password.