Troubleshooting and Common Errors

Note: Once SAML is configured for a user, they must log in using the IdP Tile or the URL provided in the SP metadata file (for example, cloud.tenable.com/SAML/XXXXXX) and log back out before they can access the Sign in via SSO link on the Tenable login page. The link appears only when your browser has a cookie from a previous successful SAML login. Additionally, any time you clear your browser cookies/cache, you must re-log in via the IdP tile or SP metadata file URL.

General Troubleshooting

If you are using an identity provider that is not covered in this guide, see SAML for Other Identity Providers.

Ensure the IdP information includes the following:

  • SSO URL/Login URL/Reply URL: The URL provided by Tenable (for example, https://cloud.tenable.com/saml/login/xxxxxxxxxxxxxxxxxxxxx)

  • Recipient URL = The recipient URL provided by Tenable (as listed above)

  • Destination URL = The destination URL provided by Tenable (as listed above)

  • Audience Restriction (Entity ID) = A unique ID per SAML configuration.

  • Check if the NameID parameter is set to Unspecified. Sometimes this works initially because the default was “user.email”, but in some cases may need to be reconfigured:

    • Choose the NameID format and the application username sent to your application in the SAML response (for example EmailAddress and Email)

    • In the Attribute Statements (optional) section, type the SAML attributes to be shared with your application. For example:

      • Name (in SAML application) Value (in Idp profile)

      • FirstName user.firstName

      • LastName user.lastName

      • Email user.email (edited)

Common IdP Misconfigurations

Reminder: Tenable does not support SP-Initiated SAML flow.
  • Tenable SAML is IdP-initiated. As such, the most common errors are due to IdP misconfiguration. The most common errors are an incorrect Entity ID or attempting to log in with a username that is not in the correct format ([email protected]).

  • If user auto provisioning is disabled, ensure the user already exists in the container where the SAML configuration was created.

  • Ensure that the SAML authentication setting is enabled for the user. In the user's account settings, under Authentication, a user can log in through SAML only if the SAML toggle is on. Users that Tenable One creates automatically from your IdP are SAML-only by default. If the setting is off, the user sees Failed to login using SAML in the browser, and the activity log shows SAML disabled for user.

  • Ensure that the certificate setup in the IdP configuration matches the certificate in the SP (Tenable application SAML) configuration, otherwise, the SP (Tenable application) rejects authentication.

  • If there are multiple SAML configurations for the same container, ensure the correct SP metadata is uploaded to the correct/matching IdP configuration that the IdP metadata was originally provided from.

  • The Tenable platform creates users at the exact moment of their first successful SAML login. They are not pre-populated by group assignment in the IdP. During the initial provisioning login, the platform prioritizes identity creation, which often results in the assignment of a default baseline role. Tenable does not fully process the userRoleUuid claim mapping until the user logs out and logs in a second time.

Error Messaging

The following are some of the most common IDP misconfiguration errors:

  • “incorrectly signed, or missing field”

    This error typically indicates something is wrong with the certificate/s in the idp.xml file. Since Tenable currently only uses the top certificate in the file, this error could indicate your XML certificates are out of order. Identify the primary certificate with the customer. Usually, you can mitigate this error by manually selecting the correct certificate within the Tenable product.

    Alternatively, the certificate may be expired. Inspect the file and make sure it does not include any expired certificates.

  • {"statusCode":401,"error":"Unauthorized","message":"Missing authentication"}

    This error is usually caused because the user is not a part of the correct group configured within their IdP. Review the instructions for your IdP and ensure that the appropriate users and groups are created within your IdP so they can be linked to your Tenable application.

  • “{"error":"SAML login attempt failed."}”

    The container has likely expired. Contact Tenable Support to review the logs for supporting information.

    If the username that your IdP passes in the SAML response is missing the domain (for example, {lastname}{firstname_firsttwo} instead of {lastname}{firstname_firsttwo}@{domain}), adjust your claim and/or transform rules accordingly.

  • “{"error":"SAML login attempt failed - the SAML IdP configuration was found, but no username could be extracted from the SAML message (could be incorrectly signed, or missing a field)."}”

    This error is intentionally general. It can occur when the SAML response is not valid XML, is not a valid SAML response, is incorrectly signed, or does not contain a username that Tenable One can extract. To find the cause, capture the SAML response and confirm that the certificate, the NameID, and the response format are correct.

  • “SAML validation failed against container xxxxxx-xxxxxxxxxx- org.opensaml.xml.validation. ValidationException: Assertion audience does not include issuer”

    The problem is with the customer SAML assertion configuration. In the IDP.xml file, check the Audience URI or SP Entity ID parameters. Additionally, verify the NameID parameter is in the correct format.

  • “failed to login using SAML”

    This is a general error that has several possible causes. To find the specific cause, check the Activity Logs page in your container (Settings > Activity Logs). For example:

    • SAML disabled for user: The SAML authentication setting is turned off for the user. In the user's account settings, under Authentication, turn on the SAML toggle.

    • User not found: No user matches the username that your IdP sent. Create the user, enable user auto provisioning, or correct the Name ID claim in your IdP.

    This error can also occur when a user has the same username (typically an email address) in more than one Tenable One container—for example, a production container and a Dev/Test container, or containers in different regions. Because usernames must be unique across every container on a site, and most identity providers send the user's email address as the username for every container by default, a user who needs access to more than one container requires a unique, container-specific username, along with a matching IdP configuration that sends that unique value instead of the default email/UPN.

    For steps to configure a unique username per container, see Optional: Configure Unique Usernames for Multiple Containers on the setup page for your identity provider:

Capture a SAML Response

Because all SAML traffic passes through the user's browser, you can capture the SAML response that your IdP sent and compare it to your SAML configuration in Tenable One. The captured response shows the exact username (NameID), audience, and attributes that your IdP sent.

To capture a SAML response using your browser's developer tools:

  1. In your browser, open the developer tools and click the Network tab.

  2. Select the Preserve log check box.

  3. Log in to Tenable One from your IdP tile.

  4. In the network log, locate the POST request to https://cloud.tenable.com/saml/login/UUID.

  5. In the request payload, copy the SAMLResponse value.

  6. Use a local Base64 decoder to decode the value into XML.

Important: A SAML response contains usernames, group names, and tenant identifiers. Do not paste a SAML response into a public decoder website, and mask sensitive values before you share it.

In the decoded response, check the following:

  • Destination and Recipient match the Reply URL of your SAML configuration, including its UUID.

  • Audience matches the Identifier (Entity ID) of your SAML configuration, in the format TENABLE_IO_UUID.

  • NameID is in email format and matches the expected username.

  • The attribute named groups is present, and each value matches the name of a user group that is managed by SAML.

  • The attribute named userRoleUuid is present and contains the UUID of a role.

  • StatusCode is Success.

You can also use a SAML tracer browser extension from your browser's official add-on store to capture and decode the response. Review the permissions of any extension before you install it, and mask sensitive values before you share a capture.

Example: Manually Verify a SAML Payload

The following code block is an example of a payload that could be used to manually verify a payload from any IdP.

<samlp:Response xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" ID="pfxb5fecfdb-d5fa-15d3-b5ad-11b536934de7" Version="2.0" IssueInstant="2024-07-18T18:24:35Z"><saml:Issuer>https://app.onelogin.com/saml/metadata/b9eb8883-9b3e-46c9-9a45-5f7416126842</saml:Issuer><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><ds:Reference URI="#pfxb5fecfdb-d5fa-15d3-b5ad-11b536934de7"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>8V8eFYjAL6l41w9JYDINVsr4AZo=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>...</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIID3...</ds:X509Certificate></ds:X509Data></ds:KeyInfo></ds:Signature><samlp:Status><samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/></samlp:Status><saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="2.0" ID="pfx1f4d6d80-506e-e027-c18c-5e85ac6d924d" IssueInstant="2024-07-18T18:24:35Z"><saml:Issuer>https://app.onelogin.com/saml/metadata/b9eb8883-9b3e-46c9-9a45-5f7416126842</saml:Issuer><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><ds:Reference URI="#pfx1f4d6d80-506e-e027-c18c-5e85ac6d924d"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>clPz/vMiLfFvQZE1E3fmgVO68DA=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>U1glVB...</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIID3DCCA...</ds:X509Certificate></ds:X509Data></ds:KeyInfo></ds:Signature><saml:Subject><saml:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress">[email protected]</saml:NameID><saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer"><saml:SubjectConfirmationData NotOnOrAfter="2024-07-18T18:27:35Z" Recipient=""/></saml:SubjectConfirmation></saml:Subject><saml:Conditions NotBefore="2024-07-18T18:21:35Z" NotOnOrAfter="2024-07-18T18:27:35Z"><saml:AudienceRestriction><saml:Audience>TENABLE_IO_e0eafdb2-e306-4ce7-b87d-c17f760cb717</saml:Audience></saml:AudienceRestriction></saml:Conditions><saml:AuthnStatement AuthnInstant="2024-07-18T18:24:34Z" SessionNotOnOrAfter="2024-07-19T18:24:35Z" SessionIndex="_2e134fe6-aa86-49c7-9eb1-0d29a683ed1c"><saml:AuthnContext><saml:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport</saml:AuthnContextClassRef></saml:AuthnContext></saml:AuthnStatement><saml:AttributeStatement><saml:Attribute NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic" Name="groups"><saml:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">SOME_AD_GROUP</saml:AttributeValue></saml:Attribute></saml:AttributeStatement></saml:Assertion></samlp:Response>

Important! The attribute name, groups, and its value, must match the group name you set within your application. For reference, see the following snippet from the above code block:
<saml:Attribute NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic" Name="groups"><saml:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">GROUP_NAME</saml:AttributeValue></saml:Attribute>