For the complete documentation index, see llms.txt. This page is also available as Markdown.

Single Sign-On with SAML

SSO configuration details.

Apica Ascent can be configured for user login using Single Sign-On (SSO) with SAML by configuring the system as Service Provider (SP) and Okta, Microsoft Entra ID (Azure AD), OneLogin, Google, or any SAML 2.0-compliant identity provider (IDP). This SAML configuration is a two-step process.

Step 1: Enabling SAML

Login to the platform with your admin credentials. In the top right, click on the Settings menu, and then select the Settings tab.

From the Settings tab, set SAML Enabled to one of the two enabled modes and fill in the fields for that mode.

Enabled (dynamic metadata)

Select Enabled and provide the SAML Metadata URL, SAML Entity ID, and SAML NameID Format. Apica Ascent downloads the IdP metadata from the URL and extracts the IdP's single sign-on endpoint, issuer, and signing certificate automatically. The metadata is validated when you save the settings — the URL must serve a SAML metadata XML document containing an IDPSSODescriptor with an X509Certificate and a SingleSignOnService endpoint.

Use this mode whenever your IdP publishes a metadata URL (Okta, Microsoft Entra ID/Azure AD, and OneLogin all do). If your IdP only provides a downloadable metadata file — Google Workspace, for example — you can still use this mode: host the downloaded file at an HTTPS location reachable from your Apica Ascent deployment (such as an S3 bucket) and use that location as the SAML Metadata URL, as shown in the Google GSuite walkthrough below.

The metadata URL is re-read each time the SAML settings are saved. If your IdP rotates its signing certificate or changes its SSO endpoint, re-save the SAML settings so Apica Ascent picks up the new values. If you host the metadata file yourself, upload the new file first.

Enabled (Static)

Select Enabled (Static) when your IdP does not publish a metadata URL, or the metadata URL is not reachable from your Apica Ascent deployment. In this mode you enter the IdP details manually:

  • SAML Single Sign-on URL — the IdP's SSO/login endpoint

  • SAML Issuer URL — the IdP's entity ID (issuer)

  • SAML x509 cert — the IdP's signing certificate, uploaded as a file or pasted in

The following x509 certificate formats are supported:

  • .pem

  • .crt

  • .cer (Base64/PEM encoded)

  • .cer (raw binary/DER)

Group and role mapping

In both modes, you can control how IdP groups and roles map to Apica Ascent:

  • SAML Group Attribute Name — the SAML assertion attribute that carries the user's groups (for example groups, or ApicaAscentGroups as used in the walkthroughs below)

  • SAML Group Mappings — maps a group name sent by the IdP to one or more Apica Ascent groups

  • SAML Role Attribute Name and SAML Role Mappings — the same, for roles

If user-groups are configured on the IDP side, create the identical user groups in Apica Ascent. This can be done by clicking on the "Settings" menu, selecting the IAM tab, and going to the Groups menu on the right side. This example shows creating the "NonAdmin" user group.

This concludes the Apica Ascent side configuration. Check below for step 2 - the specific actions for your Identity Provider (IdP).

Logout as Apica Ascent admin. On the login screen, the "SAML Login" Button should be available to login with the user's SSO credentials. By clicking the button browser is redirected to the IDP screen where the user can log in using its IDP credentials.

Step 2: IDP Configuration

This step provides detailed information to configure OKTA and Google as Identity providers. For other identity providers, please refer to identity providers' documentation. In your IDP application, provide the SAML Assertion Consumer Service (ACS) URL for your Apica Ascent environment and attribute mappings

The following attributes are required. The Apica Ascent mappings for each of the attributes are in brackets. Please use the correct attribute name otherwise Apica Ascent will not be able to recognize the SAML assertion

  • First name (FirstName) and Last name (LastName)

  • Group name (ApicaAscentGroups)

Use following SAML Assertion Consumer Service (ACS) URL

https://<Apica Ascent UI IP/Domain>/saml/callback?org_slug=default

With this, you should be able to access a SAML metadata URL or SAML metadata file.

Okta Configuration

This section describes the Okta configuration in detail. Users should assume the Okta admin role and start in the Okta control panel by clicking the button to add a new application. The sign-on method is SAML 2.0.

Create a New App

On the next screen, OKTA has fields for a few URLs:

  • Single Sign-On URL

  • Recipient URL

  • Destination URL

  • Audience Restriction

Use your Apica Ascent endpoint url in following format: https://<apica-ascent-domain-name>/saml/callback?org_slug=default Set Name ID format: EmailAddress Application username: Email

Configure Attribute statements:

Name

Name Format

Value

FirstName

Unspecified

user.firstName

LastName

Unspecified

user.lastName

By default, any user that is created with SAML/SSO will join the default user-group in Apica Ascent. It is possible to configure OKTA to pass groups the user should join by setting the ApicaAscentGroups parameter with the intended group name. For example, if the SAML user is a member of the NonAdmin group in Okta, at the user login, the user will be authenticated and added to "NonAdmin" group.

Configure Attribute statements:

Group Name

Name Format

Value

ApicaAscentGroups

Basic

Equals: NonAdmin

Continue to create the application as guided by OKTA instructions. Once the application is successfully created, the page will navigate to the Sign On tab.

Sign On tab

Here choose the SHA-2 certificate and click on the Actions button and choose the View IdP metadata option.

This will open a new tab. Here take note of the following information. This is needed to configure Apica Ascent.

  1. SAML Metadata URL: "Identity Provider Metadata" URL depicted below in blue can be copied as a SAML metadata URL or the whole contents of the page can be stored somewhere on the cloud and the path to that file can be used as SAML metadata URL

2. Entity ID: On the same page shown in the above snapshot, You can find Entity ID.

3. NameIDFormat: NameID can be found in the SAML metadata by searching NameIDFormat, shown as selected blue text in the picture below.

Navigate back to the app and edit "Audience Restriction" and set it with the IDP issuer described in #2 above.

If already not there, create users and user groups such asNonAdmin in this example. Users and user groups can also be brought in with inbound federation with ADFS or other identity providers. Assign the users to the Application or group such as NonAdmin in this example to the Application. This concludes the IDP side configuration.

Google GSuite Configuration

Navigate to Admin Console and go to the "Web and mobile apps" section

Click on "Add custom SAML app"

Fill in the "App details"

Download the Idp Metadata file and host the file in a publicly accessible location like AWS S3. The URL of this hosted file is what you will enter as the SAML Metadata URL in Apica Ascent (see Enabled (dynamic metadata) above); Google does not publish a hosted metadata URL for custom SAML apps.

Enter the service provider details

  • ACS URL is the Apica Ascent domain assigned to you appended with /saml/callback?org_slug=default

  • Choose Name ID format as EMAIL

  • Name ID as First name

In the attributes section, either map a "Google Directory attributes" or Group membership to ApicaAscentGroups.

SAML app by default is disabled in Google, enable it and wait for a few minutes and try logging in.

Next head over to the Apica Ascent SAML configuration screen in the settings. Select "SAML Enabled", and fill in the details.

Now you are ready to use SAML Login, Logout, and log back in using the SAML Login option.

Last updated

Was this helpful?