Artifactory SAML SSO Session Invalidation

Cloud TunedCloud Tuned
3 min read

Artifactory SAML SSO Session Invalidation

When using SAML Single Sign-On (SSO) with Artifactory, session management and invalidation are critical for maintaining security, especially when users log out from the identity provider (IdP). Here's a detailed guide on how to handle SAML SSO session invalidation in Artifactory.

Understanding SAML SSO Session Invalidation

When a user logs out from the IdP, the SAML session should be invalidated in Artifactory to prevent unauthorized access. This involves ensuring that the SAML session is correctly invalidated or timed out. Here’s how to manage this process effectively:

Prerequisites

  • Artifactory Version: Ensure you are using a version of Artifactory that supports SAML authentication.

  • Identity Provider Configuration: Have your IdP (e.g., Okta, Azure AD, ADFS) set up and configured for SAML SSO.

Steps to Configure SAML SSO Session Invalidation

1. Configure SAML Settings in Artifactory

Navigate to Admin > Security > SAML in the Artifactory UI to configure the SAML settings.

  • Issuer URL: Set this to the SAML issuer URL provided by your IdP.

  • SAML Service Provider Entity ID: Typically, this is your Artifactory URL.

  • Assertion Consumer Service (ACS) URL: Set this to the URL provided by Artifactory.

2. Set Up Single Logout (SLO)

To ensure sessions are invalidated upon logout, configure Single Logout (SLO) in both Artifactory and the IdP:

  • Artifactory Configuration:

    • Enable SLO in the SAML settings.

    • Specify the SLO URL provided by the IdP. This is typically something like https://<artifactory-domain>/artifactory/saml/SSOService.

  • Identity Provider Configuration:

    • Configure SLO URLs in your IdP settings.

    • Ensure the IdP sends a logout request to Artifactory at the specified SLO URL.

3. Update IdP Settings for SAML SSO

Ensure the following settings are configured in your IdP:

  • Single Logout URL: Configure the SLO URL in the IdP settings.

  • Logout Response: Ensure the IdP sends a logout response to Artifactory.

4. Test the SAML SSO Session Invalidation

  • Logout from the IdP: Log out from the identity provider and verify that the session is invalidated in Artifactory.

  • Check Artifactory Session: Attempt to access Artifactory after logout to ensure the session is terminated and the user is redirected to the login page.

5. Configure Session Timeout Settings in Artifactory

Adjust the session timeout settings in Artifactory to ensure sessions expire after a period of inactivity:

  • Navigate to Admin > Security > Session Management.

  • Set the session timeout value according to your security requirements.

Example Configuration Snippets

Artifactory SAML Settings:

saml.issuer=urn:example:artifactory
saml.acs.url=https://<artifactory-domain>/artifactory/saml/SSOService
saml.idp.metadata.url=https://<idp-domain>/metadata
saml.single.logout.url=https://<artifactory-domain>/artifactory/saml/SSOService

IdP SLO Configuration:

  • Single Logout URL: https://<artifactory-domain>/artifactory/saml/SSOService

  • Logout Response URL: Ensure this URL is correctly configured to handle logout responses.

Conclusion

Configuring SAML SSO session invalidation in Artifactory ensures that user sessions are properly managed and invalidated when users log out from the identity provider. This enhances the security of your Artifactory instance by preventing unauthorized access after user logout.

If you have any questions or need further assistance with configuring SAML SSO session invalidation in Artifactory, please leave a comment below or subscribe to our blog newsletter for more updates and tips.

0
Subscribe to my newsletter

Read articles from Cloud Tuned directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Cloud Tuned
Cloud Tuned