0 Replies Latest reply on Aug 20, 2015 7:54 AM by Philip Reetz

    Problem accessing tableau via wget with Access Token

    Philip Reetz

      Hi,

       

      I would like to access some dashboards via wget or curl to distribute some reports via bash scripting.

      I used the REST-Api to generate a Auth-Token (Worked fine)

      curl -k --basic "https://123.123.123.123/api/2.0/auth/signin" -X POST -d @signin.xml

      My Response

      <?xml version="1.0" encoding="UTF-8"?>

      <tsResponse xmlns="http://tableausoftware.com/api" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tableausoftware.com/api http://tableausoftware.com/api/ts-api-2.0.xsd">

        <credentials token="58ec8171ceadb24903890cb11d4e39d6">

          <site id="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" contentUrl=""/>

          <user id="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"/>

        </credentials>

      </tsResponse>

       

      I'm now trying to use this Token to access my view using wget. However, I always get some authorization error from tableau

      wget  --no-check-certificate --header "X-Tableau-Auth:58ec8171ceadb24903890cb11d4e39d6" --user=XXX --ask-password "https://123.123.123.123/views/Bob-AuslastungConsultingV2/DashboardAuslastungConsultingPC.pdf?Mitarbeiter=Max%20Muster&DStart=2015-06-01&DEnde=2015-08-20"

       

      I get the following response

      https://123.123.123.123/vizportal/api/web/v1/auth/embed/sspiLogin?path=%2Fviews%2FBob-AuslastungConsultingV2%2FDashboardAuslastungConsultingPC.pdf%3FMitarbeiter%3DMax%2520Muster%26DStart%3D2015-06-01%26DEnde%3D2015-08-20&siteUrlName=

      Reusing existing connection to 123.123.123.123:443.

      HTTP request sent, awaiting response... 401 Unauthorized

      Unknown authentication scheme.

      Authorization failed.

       

      Any ideas?

       

      Thanks.

       

      Bye,

      Philip