This page showcases the use of the new Embedding API and was designed while the feature was in prerelease/alpha. The JS library to use is currently hosted at
Additionally, this new method for Embedding enables the use of Connected Apps for authentication. Connected apps enable seamless authentication like SSO does, without the need for an IdP. It is a more secure method than Trusted Tickets, based on a trust relationship between Tableau and a custom application, which is established and verified through an authentication token using the JSON Web Token (JWT) standard.
The viz embedded below makes use of both v3 of the Embedding API, as well as a the concepts described for Connected Apps.
Note: we're using a generic user here, for the JWT token generation. See the page on Connected Apps for more details on the correct use.