Suresh - ELMO - Hi Team. We have an embedded ap...
# dev-help
s
Hi Team. We have an embedded app with trusted authentication enabled - TrustedAuthTokenCookieless. We are provisioning user using JIT, and RBAC is enabled and properly configured. User has attached to a Group "Group 1" which has role "Role 1" which contains privilege "Can use Sage". But I am still getting 403 when I ask a question from search bar. The error message is "AxiosError: Request failed with status code 403" and fun part is we don't use axios on our FE SPA. We can run a report on that model but sage search is not working. Can someone help us on this?
a
message has been deleted
y
hey I think you followed all this : https://developers.thoughtspot.com/docs/just-in-time-provisioning#_jit_provisioning_and_authentication_token_generation_via_rest_apis For the JIT provisioning. Next are you trying this locally ? And loading some resource hosted locally that might give 403 for overall page when embedding this. So, the error happens when you are doing search embed ? or sage embed? Can you put some more details regarding this? And the error console logs what it says. Thanks
y
Hey cool - I hope you are doing proper provisioning while getting the token for embed. Can you put the code for the init and token call. What things you are passing.
s
@sureshelmo_98737 the axios error is probably from TS. Do we have any api call which is giving 403? I think some initial call chekcing permissions gives 403 and then all the calls fail. Can you check if this user can use spotter on TS as well?
s
This is what I got from our FE team. And I logged-in as that user in direct TS UI (not from embedded), this user is able to use Sage Search. Only embedded part is not working. I have attached little bit info around FE init. We tested both Trusted authentication as well NoAuth flow, same result and not able to ask AI question. https://cdn.discordapp.com/attachments/1408334089638903930/1409442598602543144/discord-msg.txt?ex=68ae0df5&is=68acbc75&hm=b794cb4417acc45f29f92792ae17476bea3c6309604184e43e178db14a7f437d& https://cdn.discordapp.com/attachments/1408334089638903930/1409442598963384403/fe-init.txt?ex=68ae0df5&is=68acbc75&hm=911b830af28acf32a0ca2b6d0431be8ba3d91d4222c3346707159cc9d62473af&
s
I think this is a bug we are already investigating. Let me confirm and get back if this is known or if already fixed
s
Thank you and let us know about the outcome. Meanwhile,I have created a support ticket #00406676 with the above detail .