Hi
Hi
For the liveboard embedding, we are specifying the nonprod org and it only can access prod liveboards. If I try a non-prod liveboard it asks to switch orgs in the embed. Is there a way to skip the option of choosing the orgs?
3 Replies
Can you share your code snippet where you are getting the auth token?
init({
thoughtSpotHost: "https://thoughtspot.cloud",
authType: AuthType.TrustedAuthToken,
username: "selfserve_app",
getAuthToken: () => {
return fetch("https://thoughtspot.cloud/api/rest/2.0/auth/token/full",
{
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify(
{
username: "selfserve_app",
validity_time_in_sec: 300,
auto_create: false,
secret_key:
${thoughtspotKey}
})
}
)
.then(response => response.json())
.then(data => data.token);
}
});
@shikharTS ^^So, you have not given orgId in the getAuthToken method body. Since you ahve not given it, it will take the orgId from which the secret_key is generated. That most probably would be the primary orgId/prod orgId and hence you only see liveboards in the prod orgId. If you provide the orgId in the getAuthToken method, you should be able to see non prod liveboards