Skip to main content
Version: 5.6

Setting up SSO with an external OpenID authentication server

This document describes the operation and configuration of BlueMind with an external OpenID authentication server.

Prerequisites​

  • Have an OpenID server up and running
  • The BlueMind authentication client must have been authorised by the OpenID server
  • You must have declared the redirect addresses for the server:
    • The redirect address after login: https://<URL externe>/auth/openid
    • The redirect address after logout: https://<URL externe>/
  • You must have declared the redirect addresses for each URL in the domain

After configuration, note the following information, which will be used to configure BlueMind:

  • third-party OpenID server URL
  • OpenId client identifier (sometimes called Application ID)
  • **OpenId customer secret

How OpenID authentication works​

For initial authentication :

  1. The user tries to connect to BlueMind, which he opens in his browser.
  2. As it has not yet been authenticated, the BlueMind server redirects it to the OpenID server for authentication.
  3. Once authenticated, an openID cookie is placed in the user's browser, and the user is redirected to BlueMind with a ticket to validate.
  4. The BlueMind server :
    1. sees this ticket,
    2. asks the openID server if it is valid,
    3. If that is the case, authorize the connection and set a BlueMind cookie in the browser.

On next authentication:

  1. The customer requests access to the BlueMind server again.
  2. As it has the BlueMind cookie, it is automatically authenticated as long as this cookie is valid.

When logging out of BlueMind:

  1. The user’s session is also terminated on the OpenID server,
  2. The user is redirected to the OpenID server’s login page.

OpenID configuration for a single or primary domain​

  1. In the administration console, go to System management > Supervised domains > choose domain > Security tab.

    ℹ️ Administrator account
    As this procedure relates to domain configuration, it is possible and preferable to use a domain administrator account rather than the superuser admin0.

  2. Select the OpenID authentication mode from the drop-down menu and fill in the associated fields:

    • third-party OpenID server URL: indicate the URL of the OpenID server used to retrieve the list of endpoints.
      For example, on Keycloak, it's a URL of the form: https://{openid-server}/realms/{realm}/.well-known/openid-configuration
      Replace:
      • {openid-server}by OpenID server hostname
      • {realm} by the realm configured on the server
    • OpenId customer identifier
    • **OpenId customer secret
  3. Click on "Save" to save your changes.

Users will then be automatically redirected to the OpenID server when accessing the authentication page.

OpenID configuration in a shared Environment​

To use a single authentication server with multiple domains, you configure the server for a primary domain, to which the other domains are linked.

  1. Set up your first domain using the method described above; it will then be considered the primary domain.

  2. Enter an external URL for the primary domain (see External URLs).

    ⚠️ Configuring the external URL is essential for authentication to work correctly with all domains.

  3. Note the identifier of the secondary domain(s) (domain UID, or Domain UID) from the list of domains or their management details.

  4. Go to the management page for the primary domain > Security tab. Below the OpenID configuration form, there is now an "Add" link:

    → Click to add as many secondary domains as you like.

  5. In the fields provided, enter the UIDs of the domains you want to link:

  6. Click "Save" to confirm.

  7. In the subdomain management page, under the Security tab, the form has been replaced with a field displaying the primary domain's UID:

Limitations and known issues​

Logout redirection​

  • If the logout URL is not specified in the configuration, the OpenID server does not offer a logout option. When the user logs out, they are redirected back to BlueMind but remain logged in on the OpenID server. It is therefore still necessary to close the browser on a shared workstation.

  • Logging out directly on the OpenID server does not end the BlueMind session.

Using a self-signed certificate or an unknown certification authority​

Symptoms: If a self-signed certificate is used for the server OpenID, or if the certificate authority for the server OpenID is not listed, a security error occurs when establishing an HTTPS connection to the server OpenID.

Solution: To resolve this error, import the self-signed certificate or the root certificate authority:

  1. Follow the procedure Adding a CA to the system
  2. Restart the services bm-core, and bm-webserver

For further information For information on CA management and certificate validation, see see the page Managing certification authorities.

Find out more​

Related BlueMind documentation pages