SAML SSO
What it's about
Â
SAML is an acronym used to describe the Security Assertion Markup Language (SAML). Its primary role in online security is that it enables you to access multiple web applications using one set of login credentials. It works by passing authentication information in a particular format between two parties, usually an identity provider (IDP) and a web application (in our case, XCALLY).
The technology industry created SAML to simplify the authentication process where users needed to access multiple, independent web applications across domains. Prior to SAML, single sign-on (SSO) was achievable but relied on cookies that were only viable within the same domain. It achieves this objective by centralizing user authentication with an identity provider. Web applications can then leverage SAML via the identity provider to grant access to their users. This SAML authentication approach means users do not need to remember multiple usernames and passwords. It also benefits service providers as it increases security of their own platform, primarily by avoiding the need to store (often weak and insecure) passwords and not having to address forgotten password issues. (Reference: https://www.onelogin.com/learn)
Â
How to set up
Â
To activate the login with SAML on XCALLY, you need to:Â
A. Configure the Identity Provider
B. Configure XCALLY Server
C. Enable SAML login for Administrator, Users and Agents
Â
Requirements
The SAML SSO feature requires:
SAML Identity Provider Account
XCALLY Motion version 3.2.0 or higher
For agents, SSO feature is available only for WebRTC Agents (and not for Phonebar Agents)
Configure the Identity Provider
Â
A SAML identity provider is a system entity that issues authentication assertions in conjunction with a single sign-on profile of the Security Assertion Markup Language (SAML).
SAML assertions are the messages that are exchanged between an identity provider (IDP) and XCALLY that confidentially identify who a user is, what pertinent information exists about them, and what they’re authorized or entitled to access.
Â
Choose a SAML Identity Provider (IDP)
Associate the XCALLY Motion to the IDP (ex. create the application)
When requested, add the XCALLY certificate (see next how to get it)
From the IDP Settings, retrieve:
SAML Endpoint (HTTP)
IDP Certificate
Issuer URL
Single Logout URL (HTTP), if available in IDP
Â
When configuring SAML Assertions, add the custom attribute (or parameter) that defines the connector field. Set email as value, so that the provider will consider the XCALLY user email as connector field.
Emails registered on the identity provider must be already set on XCALLY.
Â
Below, you can find an example:
Â
Retrieve XCALLY Certificate
Certificates in SAML are used as a convenient way to handle the signing and encryption keys. The keys are usually either exchanged through metadata, or by some secure transfer of the certificate to the parties involved in the SAML exchange.
To retrieve the XCALLY certificate from the SAML metadata, go to the API:
https://<XCALLY DOMAIN>/api/auth/saml/metadata
(enter your XCALLY domain in the string)
Â
Below, you can find an example:
Configure XCALLY Server
Â
Follow these steps to configure the XCALLY server:
Use SSH to connect to your XCALLY server
Login with motion user
Set SAML strings for activating the connection between XCALLY and the IDP in /var/opt/motion/.env :
DOMAIN -> Your Motion Domain (XCALLY URL) XC_SAML_ENTRYPOINT -> IDP SAML Endpoint XC_SAML_CERT -> IDP's public signing certificate (paste the certificate text into a single line) XC_SAML_ISSUER -> Issuer string to retrieve from the IDP XC_SAML_LOGOUT_URL (optional) -> IDP Single Logout
Â
Below, you can find an example:
To edit the file .env, follow the instructions recommended here.
Â
Enable SAML login for Administrator, Users and Agents
Enable login in General Settings
The Login with SAML must be enabled under Settings → General:
Users and Agents (WebRTC and External) will be able to connect to XCALLY using identity provider credentials.
Staff emails on XCALLY must be equal to the Staff emails registered on the identity provider.
Â
Login for XCALLY users
On the Login page, the button Login with SAML is available:
Clicking on Login with SAML, XCALLY Users will be redirected on the identity provider portal.
After entering the provider credentials on the provider portal, XCALLY Interface will be opened as usual.
If configured, from the second login on, each time Users click on Login with SAML, they will directly access to XCALLY, without entering credentials again.