How am I getting the ticket? I am using a python function with the request library. And this in works fine, I get a ticket like: fRoW9Ru9TXWKbB0GLZMXfQ==:EB981pM5LX7xkHVDlbwyC7KK I already added the ip of my web application in the trusted hosts. Here is the network when i trying to open the web: I don't know why many of the requests are paired, the only difference is that in one I get a 301, and in the other a 302. Any ideas? Thanks a lot.", "answerCount": 2, "upvoteCount": 0, "datePublished": "2023-04-12T20:42:16.000Z", "author": { "@type": "Person", "name": "Tableau Community Forums Member (Inactive)", "url": "https://trailblazers.salesforce.com/profileView?u=005KX000003dXo4YAE", "affiliation": { "@type": "Organization", "name": "Salesforce" } }, "suggestedAnswer": [ { "@type": "Answer", "text": "@Brian Lauget​  Hi, in this case, try to generate a token, but don't redeem it.   Once you have it, then open a new tab in a browser (make sure you are not signed in Tableau) and try to use it with an URL like: https://tableau.farmashop.com.uy/trusted/9D1ObyqDQmSIOyQpKdy4Sw==:dg62gCsSE0QRArXNTOp6mlJ5/views/Farmanuario/Farmanuario?:embed=yes If you are using sites add t and the url name of the site: https://tableau.farmashop.com.uy/trusted/9D1ObyqDQmSIOyQpKdy4Sw==:dg62gCsSE0QRArXNTOp6mlJ5/t/Sales/views/Farmanuario/Farmanuario?:embed=yes Tell us if the view is displayed.   If this post resolves the question, would you be so kind to \"Select as Best\"?. This will help other users find the same answer/resolution and help community keep track of answered questions. Thank you.   Regards,   Diego Martinez Tableau Visionary and Forums Ambassador ", "upvoteCount": 0, "url": "https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000kSGaO0AW", "datePublished": "2023-04-12T21:05:45.000Z", "author": { "@type": "Person", "name": "DIEGO FERNANDO MARTINEZ RODRIGUEZ", "url": "https://trailblazers.salesforce.com/profileView?u=0054S000001oPU8QAM", "affiliation": { "@type": "Organization", "name": "Modux" } } } ] } }
Skip to main content

I'm having trouble displaying an embedded view in a web application, using a Tableau trust ticket.

 

Tableau Version: 2021.4.

Instalation on prem.

 

I have no problems generating the ticket, but when I try to use it I get different redirects and it takes me to login again.

 

How am I using the ticket? (Django WebApp)

 

<script type="text/javascript" src="https://-----.com.uy/javascripts/api/viz_v1.js"></script>

<object class="tableauViz" width="800" height="600" style="display:none;">

  <param name="name" value="--/--" />

  <param name="ticket" value="{{ ticket }}" />

</object>

 

How am I getting the ticket?

 

I am using a python function with the request library. And this in works fine, I get a ticket like:

 

fRoW9Ru9TXWKbB0GLZMXfQ==:EB981pM5LX7xkHVDlbwyC7KK 

 

I already added the ip of my web application in the trusted hosts.

 

Here is the network when i trying to open the web:

 

Problem when using a ticket on embedded view.I don't know why many of the requests are paired, the only difference is that in one I get a 301, and in the other a 302.

 

Any ideas?

 

Thanks a lot.

2 answers
  1. Apr 12, 2023, 9:05 PM

    @Brian Lauget​ 

    Hi, in this case, try to generate a token, but don't redeem it.

     

    Once you have it, then open a new tab in a browser (make sure you are not signed in Tableau) and try to use it with an URL like:

    https://tableau.farmashop.com.uy/trusted/9D1ObyqDQmSIOyQpKdy4Sw==:dg62gCsSE0QRArXNTOp6mlJ5/views/Farmanuario/Farmanuario?:embed=yes

    If you are using sites add t and the url name of the site:

    https://tableau.farmashop.com.uy/trusted/9D1ObyqDQmSIOyQpKdy4Sw==:dg62gCsSE0QRArXNTOp6mlJ5/t/Sales/views/Farmanuario/Farmanuario?:embed=yes

    Tell us if the view is displayed.

     

    If this post resolves the question, would you be so kind to "Select as Best"?. This will help other users find the same answer/resolution and help community keep track of answered questions. Thank you.

     

    Regards,

     

    Diego Martinez

    Tableau Visionary and Forums Ambassador

0/9000