QBoard » Advanced Visualizations » Viz - Tableau » Embed Tableau with Authentication

Embed Tableau with Authentication

  • I have a requirement to embed a tableau report into another web page. We are using the tableau JS:

    http://onlinehelp.tableau.com/current/server/en-us/embed_code.htm

    Question is: Is there an authentication option whereby our application (web page) can pass authentication credentials to Tableau so the user does not need to enter the credentials?

    Thanks!

      January 15, 2022 1:06 PM IST
    0
  • I know this is pretty old, but the above isn't the only answer.

    New Answer: The new v3 Embedding API from Tableau introduces a new HTML web component: <tableau-viz>. You can pass a JWT in the <tableau-viz> element's "token" property to auth an embedded view for a Tableau user without the user needing to be actively logged into Tableau.

    Old, but still valid, answer:

    If you're using Tableau Online, you have two options:

    1. Make your viz public, then just use the embed URL like your sample code, or
    2. If you want or need to protect your viz behind authentication without having users present credentials on each vizualization (which based on your question seems like your plan) you can set up SAML authentication in Tableau Online with an IdP/SSO provider like Okta, AD, Salesforce, etc. Check the below docs:

    https://help.tableau.com/current/online/en-us/saml_config_site.htm

    Once you've set up the Tableau Online SAML authentication, you will need to set up a Sign In/Authentication page for the IdP/SSO platform. Most platforms will have a sign-in page for your integration or you can set up your own. If you set up your own, there is usually a fair amount of code to add for authentication.

    As long as the user is authenticated in the IdP/SSO platform with access to the Tableau Online SAML authentication, the Tableau Online viz should not ask the user to enter their credentials as they are also "signed in" to Tableau Online (via the IdP/SSO platform).

      February 11, 2022 12:27 PM IST
    0