dystudio / tableau-trusted-authentication-api

This work is to modularize the Trusted Authentication work for Tableau Server, save your time for ticket exchanging!

Home Page:https://onlinehelp.tableau.com/current/server/en-us/trusted_auth.htm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tableau_trusted_authentication_api

Introduction

This work is to simplify the Trusted Authentication work for Tableau Server by Node.js.

What's Tableau ? Tableau is one of well known Business Intelligence Tools.
More Info

Trusted Authentication is a Single-Sign-On method for us to retrieve views (we call them viz) from Tableau Server to our Web Server using HTTP/HTTPS protocols to do so. Whatever your Web Server is build by which programming languages, as long as you can use it to access HTTP/HTTPS protocols you can do Trusted Authentication. In this case I use Node.js to approach.

Begin works

First, you need to have a Tableau Server, then get some setup on Tableau Server side. eg: tell Tableau Server to trusted your Web Server ...etc, you can either use TSM CLI or TSM web interface.

tsm authentication trusted configure -th "<trusted IP addresses or host names>"
tsm pending-changes apply

References about this setup.

Additionally, there is one thing to know, Tableau Trsuted Authentication has a restriction as default, which is :

  • As default, if using this way to implement Single-Sign-On, user can only access views only. If you want to access whole Tableau Server resources, use tsm configuration set to disable this restriction as follow : ####This step is optional and not recommended.
tsm configuration set --key wgserver.unrestricted_ticket --value true
tsm pending-changes apply

How to use tableau_trusted_authentication_api

  • the prerequisite is to install node.js.
  • Clone this project to your local file.
  • Run the following command.
cd /to_project_directory/
npm install
node app.js

You will see the following output :

Listening at port : 8080

Start using it!

Open you browser, navigate to ###http://localhost:8080/home/ It will looks like the this... demo

About

This work is to modularize the Trusted Authentication work for Tableau Server, save your time for ticket exchanging!

https://onlinehelp.tableau.com/current/server/en-us/trusted_auth.htm


Languages

Language:HTML 51.9%Language:JavaScript 45.7%Language:CSS 2.4%