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:
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.
@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