After you’ve added trusted IP addresses to Tableau Server, you’re ready to configure your web server to get tickets from Tableau Server via POST requests (step 3 in the diagram).
For code examples that you can use to create the POST request in Java, Ruby, and PHP, see the following:
Here’s the data you can use in a POST request to Tableau Server:
username=<username> (required): The username for a licensed Tableau Server user. If you are using Local Authentication the username can be a simple string (for example, username=jsmith). If you are using Active Directory with multiple domains you must include the domain name with the user name (for example, username=MyCo\jsmith).
target_site=<site id> (required if view not on Default site): Specifies the site containing the view if Tableau Server is running multiple sites and the view is on a site other than the Default site (for example, target_site=Sales). The value you use for <site id> should be the site’s Web Folder name.
client_ip=<IP address> (optional): Used to specifiy the IP address of the computer whose web browser is accessing the view (for example, client_ip=123.45.67.891). It is not the IP address of the web server making the POST request of Tableau Server. If you decide to use this parameter, see Optional: Configuring Client IP Matching for more information.
Tableau Server’s response to the POST request will be a unique nine-digit string (the ticket). If Tableau Server isn’t able to process the request, the return will be -1. See Ticket Value of -1 Returned from Tableau Server for tips on how to correct this.
Next, you need to add code that allows the web server to construct an URL for the view that includes the view’s location and the ticket.