- Qubitara Central
- Integrations
- Add a custom SAML application
Add a custom SAML application
Connect an application that is not in the catalog so that people sign in to it through Qubitara Central with SAML 2.0. The procedure is the same for a SaaS product without a template and for an in-house application built on a SAML library such as python3-saml, passport-saml or Spring Security SAML.
Before you start#
A role that can manage applications, under Access → Applications.
Administrator access to the application's SAML settings, or the developer who owns them.
The application must support SAML 2.0 as a service provider and accept a configurable identity provider. If it only accepts a fixed list of identity providers, choose the option named generic, custom or "Other".
A test user and a test group in Central; see Quickstart Steps 1 and 2.
Step 1: Add the application in Qubitara Central#
Go to Access → Applications → Add Application.
On Choose App, select Custom Application and click Next.
On Basic Setup, enter the name, an optional logo and description, and the Login URL (the application's sign-in page). Click Next.
On SSO Config, leave SAML selected and download the signing certificate as
.pem. Leave the SP fields for Step 3 and click Next; if the wizard insists on an ACS URL, enter a temporary value and correct it in Step 3.On Provisioning, choose SSO Only and click Next.
On Review, click Activate.
Expected result: the application is listed under Access → Applications with status Active.
Step 2: Paste Central's identity provider values into the application#
Give the application, or its developer, the values below. If the application accepts a metadata URL, that single value replaces the rest.
Copy this value from Central (SSO Config, Qubitara IdP values) | Paste it into the application's SAML settings, usually labelled |
|---|---|
Metadata URL: | Identity provider metadata URL (if offered; configures everything below automatically) |
SSO / Sign-on URL: | Identity provider sign-in URL, SSO URL, SAML endpoint, or |
IdP Entity ID / Issuer: | Identity provider issuer, entity ID, or |
Single Logout URL: | Sign-out URL, SLO URL, or |
X.509 signing certificate (contents of the downloaded | Identity provider certificate, public key, or |
Name ID format: | NameID format, or |
Save in the application. It now displays, or its developer can tell you, its own service provider values.
Expected result: the application reports its identity provider as configured and shows an Entity ID and an ACS URL.
Step 3: Paste the application's service provider values into Central#
In Central, open the application and click Configure → under SSO.
Under SP Configuration (Service Provider), enter:
Copy this value from the application | Paste it into Central (SSO Config, SP Configuration) |
|---|---|
Entity ID, Audience, Identifier, or | SP Entity ID / Audience URI |
ACS URL, Reply URL, Callback URL, or | ACS URL |
SP metadata URL, if the application publishes one | IdP Metadata URL (auto-configure) |
Single logout URL, if the application supports SLO | Single Logout URL (SLO) |
The application's signing certificate, only if it signs its requests | SP Signing Certificate |
Set Name ID Format to EmailAddress, or to Persistent if the application matches on a stable opaque identifier rather than an email address.
Save.
Expected result: the application header in Central reads Healthy.
Step 4: Map attributes#
On the same SSO Config screen, review the SAML attribute statements table. The defaults send
email,name,displayName,givenName,firstName,lastName,familyName,surnameandgroups.Rename or add rows to match the attribute names the application expects. For example, an application that expects
mailneeds a rowmailmapped to{user.email}.For a custom attribute, define it first under Identity → Custom Attributes, then add a row such as
departmentmapped to{user.department}.Save.
Expected result: every attribute the application documents as required has a row in the table.
Step 5: Create a test user and assign access#
Go to Identity → Groups → Create group and name it, for example,
Custom App Users.Go to Identity → Users, create or open
[email protected], and add her to the group.If the application does not create accounts at first sign-in, create
[email protected]in the application as well.Open the application in Central, go to Access Policy → Manage Access, choose Group-based, add
Custom App Users, and save.
Expected result: the tile appears in Jane's App Launcher.
Step 6: Test#
SP-initiated: in a private browser window open the application's sign-in page, choose single sign-on, and sign in as
[email protected]at Central.IdP-initiated: sign in to Central as Jane and click the tile in the App Launcher.
To inspect what was sent, use a browser SAML tracer extension and decode the response.
Expected result: both routes sign Jane in. In the decoded assertion, Audience equals the SP Entity ID, Issuer equals https://central.qubitara.com/auth/saml-idp/metadata, the NameID is [email protected], and every mapped attribute is present.
Troubleshooting#
Symptom | Cause | Fix |
|---|---|---|
The application rejects the response with an audience or entity ID error | The SP Entity ID in Central does not match the application's value character for character | Copy the value again, watching for a trailing slash or |
Signature verification fails | The certificate in the application is out of date or incomplete | Re-download the |
The application says the user was not found | Name ID format or value does not match an account | Set Name ID Format to EmailAddress and confirm the email in both systems is identical. |
The application signs in but shows no name or role | A required attribute is missing or named differently | Add the row to the attribute statements table with the exact name the application expects. |
Central shows an "application not found" page after redirect | The application's request names an Entity ID that Central does not know | Enter the Entity ID from the request in SP Configuration. |
For the full catalog, see SAML errors.
Related#
How SAML works in Central: what each value above does.
SAML identity provider values: the values as copy-able blocks.
Add a custom SCIM outbound application: add account lifecycle to this application.
Custom application: the shorter protocol note for developers.