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.
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
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
- 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
Open you browser, navigate to ###http://localhost:8080/home/ It will looks like the this...