SAML Application Integrations
The Security Assertion Markup Language (SAML) integration enables passwordless authentication for users logging into a service provider's web application.
The Security Assertion Markup Language (SAML) integration screen lets you add your identity provider (IDP) information and configure its authorization and settings. This will enable a passwordless authentication solution for your organization's users (who have logged into the service provider's site). This lets you log in to your SP account using biometrics. Biometric options include Touch ID/Face ID and LiveID.
For detailed information about SAML and to review the full protocol specification, see Security Assertion Markup Language (SAML) V2.0 Technical Overview
1Kosmos as Identity Provider
1Kosmos can integrate with SAML applications by acting as an Identity Provider (IDP) that provides single sign-on (SSO) to external Service Provider (SP) applications.
The service provider (SP) initiates the SAML sign-in flow with 1Kosmos when the user goes to sign-in, or when the user attempts to visit a protected resource:
The SP generates a SAML Request, which triggers the authentication flow with 1Kosmos as the IDP.
The user enters their log-in details.
1Kosmos generates a SAML Response containing the assertion of the authenticated user. In addition, a SAML Response may contain additional information, such as user profile information and group/role information, depending on what the Service Provider can support.
The authenticated user is returned to the external Service Provider's application
For more information on setting your Identity Provider in AdminX, see Identity Provider (IDP) Configuration.
Managing Re-Authentication
1Kosmos now lets community administrators force re-authentication for users accessing SAML/OIDC Service Provider (SP) applications. This feature prompts users to re-enter any required credentials for the relevant authentication journey, even if they are already logged in.
Re-authentication can be enabled with the introduction of a new setting, Force Re-authentication, while adding SAML/OIDC applications. By default, this setting is disabled.

To re-authenticate a SAML application, follow these steps:
Log in to your tenant as a community administrator.
Navigate to Applications > Add Applications.
Configure your SAML integration.
Navigate to the Advanced Options tab of your SAML integration, enable the Force Re-authentication slider, and then click Save.
Open the target application URL in a new tab. If you already have an active session in AdminX, you will be redirected to the 1Kosmos Authentication page with your username pre-filled.
Select an authentication method. Once the authentication is successful, you will be logged in to the target application.
Event Logs
The following events are triggered during force re-authentication.
E_SP_MODIFIED
E_LOGIN_SUCCEEDED
E_SP_REDIRECT_SUCCEEDED
Redirect users to a custom URL after single logout (RelayState)
Community administrators can control where users land after an SP-initiated Single Logout (SLO). The 1Kosmos (BlockID) IDP reads and honors a RelayState parameter on the SLO request: after the IDP session is terminated, the browser is redirected to the URL supplied in RelayState instead of the default 1Kosmos logout page. The destination can be the application's own logout page, a corporate portal, or any external URL.
This is useful in SP-initiated SSO journeys, where the user starts from the Service Provider application and expects to return to a familiar application page after signing out rather than seeing the 1Kosmos logout screen.
AdminX has no separate setting for this behavior. The redirect is driven entirely by the RelayState parameter on the SLO request, so configuration happens on the Service Provider side.
Prerequisites
The SP application is configured for SAML-based SSO with 1Kosmos (BlockID) as the IDP.
The SP SLO request uses the HTTP POST method.
Community Administrator access to the AdminX console (to retrieve the community SLO URL and, if used, the application Access URL).
User logged into SP application using 1Kosmos SSO / IdP-initiated SSO.
Configure the RelayState
Set the Relay State on the Service Provider side by appending it as a query parameter to the IDP Single Logout URL in the SP's Single Sign-On settings.
Identify your community's IDP Single Logout URL:
URL-encode the destination URL you want users redirected to after logout. This is often the application's Access URL from the SAML application settings.
Append it to the SLO URL using the
RelayStateparameter:Example:
Save the updated SLO URL in the SP's Single Sign-On configuration.
Key notes:
The parameter name is case-sensitive:
RelayState.The redirect URL value must be URL-encoded.
Both same-origin and cross-origin (external) redirect URLs are supported.
Logout flow
The user is logged into the SP application via 1Kosmos IDP SSO.
The user clicks logout in the SP application.
The SP application terminates its own session and redirects the browser to the 1Kosmos IDP SLO URL (with
RelayStateappended).1Kosmos terminates the IDP session and reads the
RelayStateparameter.If
RelayStateis present and contains a valid, safe URL, the browser is redirected to that URL.If
RelayStateis absent, empty, or contains an unsafe scheme, the user is redirected to the default 1Kosmos logout page.
SAML Integration in AdminX
Add a New SAML Application
This section describes the steps for adding a generic SAML application. For more information on the list of pre-built integrations, seePre-built Integrations.
To get started, follow these steps:
Log in to your tenant as a community administrator.
Navigate to the Applications page. Click Add Application.

From the Add new applications page, scroll down to your service provider.
If your service provider is not listed, select SAML2.0 Generic (located in the Custom app section) and click Add Integration.

Review the information listed on the page. You will need to have completed the steps outlined in Identity Provider (IDP) Configuration before continuing with your SAML application integration.
Click Add Application to continue.

Enter an application name, and select an instance type.
Enter the Application access URL given by your Service Provider (SP). The URL should look something like:
https://mydomain.company.com/sso/samlClick Next to continue.

Under Step 2: SAML Settings, add the following attributes settings:
Metadata: Upload a SAML metadata file if one is available from your service provider Assertion Statement (NameID):
Format:
urn:oasis:names:tc:SAML:2.0:nameid-format:persistentValue: enter an attribute, such as
email
In the Claims Mapping section, click Add new.
Add the following attributes and their formats as specified by your Service Provider. An example of claims mapping is provided below:
Attribute:
emailFormat:User.EmailAttribute:
usernameFormat:User.UsernameAttribute:
firstnameFormat:first_nameAttribute:
lastnameFormat:last_name
Click Next to continue.

In the Advanced Options tab, enter and select the following details:
Entity ID: Enter the entity ID. For example,
https://mydomain.company.comIn the Assertion Consumer Service section, perform the following steps:
Method:
POST.URL: Enter the SAML assertion consumer URL given by your SAML service provider. The URL should look something like
https://mydomain.company.com/sso/saml
In the Select the checkbox for each request/response that should be signed section, perform any steps as specified by your service provider.
Signing Certificate: Upload a public-key
.pemfile if one has been provided by your service provider.
In the Encryption for SAML Assertion section, you can encrypt SAML assertions before they are transmitted to the service provider to ensure secure data exchange. By default, SAML assertion encryption is disabled.
The supported Encryption Algorithm: AES256-CBC
The supported Key Transport Algorithm: RSA-OAEP
Enable the Force Re-authentication option to re-authenticate the user every time they visit the application.
Enable the IDP-initiated Login option to redirect the user after authentication. Note: This Relay State applies to IDP-initiated login and redirects the user after authentication. It is not the same as the post-logout Relay State, which is configured by appending a
RelayStateparameter to the IDP Single Logout (SLO) URL. SeeRedirect users to a custom URL after single logout (RelayState).

Click Save to finish adding your SAML application.

Testing the Connection
In your browser, enter the target application domain URL. You will be redirected to your 1Kosmos Admin console's single sign-on page.
Login with 1Kosmos by scanning the QR code with the 1Kosmos Mobile Application or by entering your username, password, and OTP.
After authenticating, you will be logged into the target application, confirming the SAML integration has worked successfully.
Last updated
Was this helpful?

