Hi Pankaj -
I think you may be confused about what adding an IP address to Tableau's Trusted Host list actually does.
In essence, adding an IP to trusted_hosts will cause Tableau to trust that the host in question has authenticated the user in question. The host/app in which the Tableau viz is embedded not only needs to be trusted, but it needs to provide Tableau with the user name of the authenticated user. Have you written code on an embed tag which does this?
Tableau Server will then return a ticket to the browser. You need code to take that ticket and append it to a URL which the browser will fire back at Tableau. Have you implemented this? Please post all code you've written.
Many Thanks... Russel.
Implemented code to get a ticked from tableau server...
I have written two methods to get Tableau ticket in .Net Web Application.Just check attached screen-shots. I have hosted that web application on web server(172.21.135.12).
I run these commands on Tableau Server(D:\Program Files (x86)\Tableau\Tableau Server\6.1\bin)
tabadmin set wgserver.trusted_hosts “172.21.135.12"
It's worked once. after that again i run the above commands with different IP(for local machine) but it didn't work.
Again i run the above commands with web server IP address(172.21.135.12) but this time i got tableau server login page.
I am getting ticket ID as -1. I also checked the given reason in the trusted authentication pdf file.
please suggest me regarding these authentication issue.
Note:- If you could provide a sample application that would be nice.
Sorry, I didnn't see that you'd responded. I suspect that you've already found the .NET sample code that we provide as part of a SharePoint example but in case you haven't, look in C:\Program Files (x86)\Tableau\Tableau Server\6.1\extras\embedding\sharepoint
Hope this helps!