ARTIFACTORY: Why the SAML SSO URL Requires the Display Name Suffix
Understanding SAML ACS URL Requirements for Multi-IdP Support in JFrog Artifactory 7.x JFrog Artifactory 7.x and later versions introduced a significant architectural change to support multiple Security Assertion Markup Language (SAML) Identity Providers (IdPs) within a single instance, a capability not present in earlier versions. Key Change: Provider-Specific Routing via the ACS URL To facilitate this multi-IdP environment, JFrog implemented a provider-specific routing mechanism directly into the SAML Assertion Consumer Service (ACS) URL. The ACS URL must now include the SAML Display Name as a path parameter. How it Works: This display name acts as a crucial routing identifier, informing Artifactory exactly which SAML configuration should process the incoming authentication request (the SAML response/assertion). The required ACS URL endpoint structure, as used when an IdP like Okta returns the SAML Response, is: /ui/api/v1/auth/saml/loginResponse/<saml_display_name>The <saml_display_name> in the URL path directs Artifactory to the correct SAML configuration for processing the login response.![]()
What Happens in Each Scenario Working Scenario Overview URL: https://<Artifactory-IP>/ui/api/v1/auth/saml/loginResponse/saml-sso This scenario details the successful user login flow:
- Okta successfully authenticates the user.
- Okta sends the SAML Response to the Artifactory endpoint: .../loginResponse/saml-sso.
- Artifactory parses the URL path, extracting the Display Name, which is saml-sso.
- Artifactory searches its SAML configurations for a match where the Display Name equals saml-sso.
- Match Found! Artifactory proceeds to validate the SAML assertion using the certificate and settings from the matched configuration.
- The user is successfully logged in.
Quick SAML SSO Pre-Test Checklist
Before attempting to test SAML Single Sign-On (SSO), ensure the following requirements are met:
|
Checkpoint |
Requirement |
|
ACS URL Format |
Must include the display name: /loginResponse/\<display\_name\> |
|
Audience URI |
Must match the value of the ACS URL exactly. |
|
Display Name |
Must match exactly (case-sensitive, no leading or trailing spaces). |
|
Trailing Slashes |
URLs must not end with a trailing slash (e.g., /saml-sso not /saml-sso/). |
|
Protocol |
HTTPS must be used, as SAML requires a secure connection. |
|
Certificate Status |
The certificate configured in Artifactory must be current (not expired). |
Not Working Scenario Summary When a user attempts SAML login via the URL https://<Artifactory-IP>/ui/api/v1/auth/saml/loginResponse, the authentication fails because Artifactory cannot identify the correct SAML provider configuration. Steps to Failure:
- Okta successfully authenticates the user.
- Okta sends the SAML Response to the .../loginResponse endpoint, without including a provider name in the URL.
- Artifactory attempts to parse the URL but fails to extract the necessary provider name.
- Artifactory cannot determine which SAML configuration to use for validation.
The process results in a failure, returning an error such as "Unknown SAML provider" or "SAML authentication failed."![]()
Conclusion For successful SAML SSO integration between Okta and JFrog Artifactory 7.x, the correct configuration of the Assertion Consumer Service (ACS) URL, specifically including the display name suffix, is essential.