SAML and Tableau embedded views


In my webapp I need to display private tableau online views to users who have already authenticated with okta.
I followed step by step the setup here and I can succesfully use my Okta credentials to login into Tableau. However, I cant manage to see the dashboard, it keeps prompting for username and password.

What I noticed:

  1. when I launch my app, the dashboard shows the OKTA login form. I login in with my credentials and it succeeds; however the call to tableau Assertion Consumer Service URL (ACS) returns a 401.
  2. The dashboard in my app shows the regular tableau login form. If I authenticate, the dashboard shows the OKTA login form once again

The code I use for showing the view, is the one generated from tableau to embed the dashboard.
Here is the code

Screenshot 2021-05-12 at 17.05.08