- Implement single sign on (SSO) for Tableau Online with security assertion markup language (SAML) identity provider (IdP) OneLogin
- Create a simple embedded analytics application that embeds a Tableau Online dashboard into a web page
- Provide a seamless end user experience in an embedded analytics application (note that this may be at odds with the most robust security setup configuration)
- Tableau Online account. If you do not have a Tableau Online account, please let us know and we will spin up a trial for you or help you make a purchase.
- Admin access to your Tableau Online account.
- Tableau dashboard content published you want to use for embedded analytics. For testing, you can use any Tableau dashboard published to Tableau Online.
- OneLogin account. If you do not have a OneLogin account, you can sign up for a free trial here.
- Admin access to your OneLogin account.
Web Server for Embedded Analytics Application:
- Access to a web server and a simple HTML page you can use for testing embedded analytics with a Tableau Online dashboard. Check out our blog for instructions on setting up a simple embedded analytics web server with Python and embedding a Tableau dashboard.
We followed the set up instructions directly from Tableau's Tableau Online help documentation: Configure SAML with OneLogin
As part of our testing, we wanted to make sure the embedded analytics experience was as seamless as possible.
DO THIS AT YOUR OWN RISK. Tableau warns about this in their documentation and in Tableau Online itself.
Tableau Online extra settings:
On the Tableau Online side, under Settings -> Authentication -> Authentication types:
Click "Edit connection..."
Under section "6 Embedding options", click "Authenticate using an inline frame (less secure; not supported by all IdPs)".
OneLogin extra settings:
On the OneLogin side, under Administration -> Settings -> Account Settings and under the Basic section, we checked to "Disable Framing Protection (X-Frame-Options)".
As a last step, update the authentication of any existing/new Tableau Online users you want to authenticate via OneLogin. Make sure they are using onelogin.com (SAML) as their authentication rather than Tableau.
Note that a user can only authenticate via a single method, either OneLogin or Tableau.
Update the authentication of existing Tableau Online users:
On the Tableau Online users page, select the user and click the three dots (...).
Change the Authentication from Tableau to onelogin.com (SAML) and click update.
The user should now have onelogin.com (SAML) in the Authentication column.
Add new users to Tableau Online and have them authenticate via OneLogin:
When adding new users to your Tableau Online site, click the "+ Add Users" orange button:
If you have one or a few users, click "Enter Email Addresses". You can also import using a CSV file if you have a large list.
Make sure that you select "Add users for onelogin.com (SAML) authentication".
Embed a Tableau dashboard in a website:
Now that you have at least have one user in Tableau Online authenticating via OneLogin, it is time to test the end user experience in an embedded analytics environment.
For this part, you will need a simple HTML page hosted by a web server. Check out our blog here for instructions on setting up a simple web server with Python and embedding a Tableau dashboard.
Simply navigate to a Tableau dashboard in your Tableau Online and click the "Share" button.
There are several ways to embed a Tableau dashboard, in this case, just click "Embed Code" to copy the code.
On your HTML page, paste the "Embed Code".
Here's a simple example of the HTML:
Save and refresh your page.
If you are still logged into Tableau Online, this is what you will see:
SSO and end user experience:
Now let's test the embedded analytics application from the end user's perspective. In an external, customer facing embedded analytics application, your end users will probably not be aware that Tableau is driving their analytics experience nor will they be aware that your application is using OneLogin for authentication. All they will see is your application's login screen.
So let's mimic that environment.
Sign out of Tableau Online and then sign back into OneLogin.
Refresh your embedded analytics application's page and you should see this:
If your user clicks "Sign in to Tableau Online", their experience will be something like this:
The end user only has to go through this "login" flow once or until they are signed out of Tableau Online. Tableau Online's idle session timeout duration is 2 hours (and cannot be modified).
We implemented single sign on (SSO) for Tableau Online using security assertion markup language (SAML) identity provider (IdP) OneLogin.
During the setup we enabled optional (and less secure) features with the goal of creating a seamless end user experience in the embedded analytics application.
We also walked through creating that simple embedded analytics application and embedded a Tableau Online dashboard into a webpage.
The end user experience is less than ideal with a user needing to click a button to authenticate, however, they do not have to log in with a username and password. If you are looking for a more seamless embedded analytics experience for your end users, we have products that solve this.