1 Reply Latest reply on Sep 13, 2017 10:52 PM by Anit Shrestha Manandhar

    /trusted redirects issue

    Anit Shrestha Manandhar

      Hi,

       

      My Issue is below:

       

      I am trying to get a trusted token from a Tableau  Server in a different PC in LAN.

       

      $ curl http://10.0.84.158:8000/trusted -d "username=b&target_site=Default&client_ip=10.0.84.124" -v

      * timeout on name lookup is not supported

      *   Trying 10.0.84.158...

      * TCP_NODELAY set

        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                       Dload  Upload   Total   Spent    Left  Speed

        0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connected to 10.0.84.158 (10.0.84.158) port 8000 (#0)

      > POST /trusted HTTP/1.1

      > Host: 10.0.84.158:8000

      > User-Agent: curl/7.54.1

      > Accept: */*

      > Content-Length: 52

      > Content-Type: application/x-www-form-urlencoded

      >

      } [52 bytes data]

      * upload completely sent off: 52 out of 52 bytes

      < HTTP/1.1 302 Found

      < Date: Wed, 13 Sep 2017 11:58:21 GMT

      < Server: Tableau

      < X-Tsi-Request-Id: WbkdXQoAVJ4AACqERgsAAAE7

      < Pragma: no-cache

      < Expires: Thu, 01 Jan 1970 00:00:00 GMT

      < Cache-Control: no-cache

      < Cache-Control: no-store

      < Location: http://10.0.84.158:8000/vizportal/api/web/v1/auth/signin?path=%2Ftrusted%3F&siteUrlName=

      < Content-Length: 0

      < X-Tableau: Tableau Server

      < P3P: CP="NON"

      < X-UA-Compatible: IE=Edge

      < X-Content-Type-Options: nosniff

      < X-XSS-Protection: 1; mode=block

      <

      100    52    0     0  100    52      0   1106 --:--:-- --:--:-- --:--:--  1677

      * Connection #0 to host 10.0.84.158 left intact

       

       

      -----------------------------

       

      Also when I tried to use the php sample, the response is

       

      URL: http://10.0.84.158:8000/trusted

      HTML Response Content:

       

      Resource not found

      Please check the URL and try again.

       

       

      What I have done:

      1. Login Prompt When Embedding Tableau Server | Tableau Software

      2. Add Trusted IP Addresses or Host Names to Tableau Server

      3. Also Clickjack Protection in Tableau Server

       

      Also following Tableau Embedded Analytics Playbook

       

       

      I am tying make code from this video source run-able https://tc14.tableau.com/schedule/content/932

      Though I'm trying to implement in a C# env.

       

      My purpose I am trying to generate a token to use it for Web Authoring.

       

       

      Any comment would be appricaited!!