Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in BI by (47.2k points)

I was attempting to use Tableau online embeddable charts with OneLogin using the session_via_api_token method.

I am able to retrieve a token from backend and pass it to the frontend. As mentioned here, the only way to call session_via_api_token is to POST a form.

The issue I'm facing is, after the form's POST, I'm redirected to /apps page of OneLogin. Is there any way I can specify a return URL, or make the default behavior to redirect to one particular page(of my domain) after login.

What I want to achieve is hit session_via_api_token request of one login and redirect it back to my custom reports page where I've embedded a couple of tableau reports.

1 Answer

0 votes
by (17.6k points)

  • This endpoint depends on the HTTP_REFERER header being set and should redirect back to that URL.

  • Browser should be set automatically during the POST operation to our endpoint. It's worth noting that this does have to be done on the user's browser in order for us to establish an SSO session.

  • For example, User's browser does a POST to our site with the token - We establish a session and set cookies for our domain then we redirect back you your login 'facade'

  • In order to simplify things, we will be adding CORS support for this endpoint, and that work should be completed soon.

Related questions

0 votes
1 answer
asked Aug 23, 2021 in BI by dev_sk2311 (45k points)
0 votes
1 answer
asked Nov 21, 2019 in BI by Sammy (47.6k points)
0 votes
1 answer
asked Nov 3, 2019 in BI by Vaibhav Ameta (17.6k points)
0 votes
1 answer

Browse Categories

...