Emma Verhamme - Hi, I have a question about usi...
Hi, I have a question about using the visual-embed-sdk for embedding with React components. I am trying to use an auth type of TrustedAuthTokenCookieless. Using either the authEndpoint method and the getAuthToken method on the init function, I get the same result. I get a console error that says, "ThoughtspotEmbed.tsx:19 Received invalid token from getAuthToken callback or authToken endpoint. Error : Received invalid token from getAuthToken callback or authToken endpoint." I am wondering if there's something wrong with my token. I am including the correct username, orgId, secretKey. I've also tried it with including the password. Is there any way I can debug this further to figure out what's going on here? Am I missing necessary info on the request for the token? (I am using the /rest/2.0/auth/token/full endpoint for generating the token). Thank you for your help!
6 Replies
The endpoint is {TSurl}/api/rest/2.0/auth/token/full. Can you check the network tab what api is being called?
https://onboardrs.thoughtspot.cloud/api/rest/2.0/auth/token/full
That's what I'm using to retrieve the token.
i also see
https://onboardrs.thoughtspot.cloud/callosum/v1/session/isactive is getting called, with a 401 response.
Can you try on playground if this is working fine for you?
https://onboardrs.thoughtspot.cloud/api/rest/2.0/auth/token/full this api should also have an error in response. Can you send me the HAR file in DM?
i am not getting an error in the response. It gives me a token and all the other data as well.
The authEndpoint needs to return just the token string, right? It's not expecting the whole response, right?
YEs
It is possible then something in the code might be going wrong
Can you send a code snippet and remove the secret/keys or any password?
Thanks, i sent you a DM!