Anandu - Hi team , I am facing an issue while s...
# dev-help
a
Hi team , I am facing an issue while setting up the RLS rules , | What all i did 1. Built a token generation service that accept the variables for RLS rules, 2. Added the row security rules to the table i need to apply the filtering Issue, The expected filtering is not applied while using the generated token on that table data related API
j
@Anandu how are you calling the
/api/rest/2.0/auth/token/custom
endpoint? What are you passing as the body when you make that call?
a
{ "username": "UserA", "validity_time_in_sec": 300, "persist_option": "APPEND", "auto_create": true, "secret_key": "f8aa445b-5ff1-4a35-a58f-e324133320d5", "variable_values": [ { "name": "tenant_id", "values": [ "123" ] }, ] }
a sample like above
j
@Anandu I just want to make sure that the secret key you've included here is fake. If not, you should remove it and regenerate your secret key.
a
Its fake, i just copied the example request body from the docs and updated
j
OK, thanks. Can you contact ThoughtSpot support? We'll likely need to look at the actual request that you're sending to better understand what might be happening so we want to make sure that we do that securely.
a
I actually contacted them and they told to raise the query in discord
j
OK, can you give me your case number? I'll take a look internally.
a
Ok, so where can I find the case number, I have a conversation with one person from the Chat live with support team
j
You'll need to open a Support Case (you -- or someone in your organization -- can do this in ThoughtSpot Community). That will allow you to securely send things like code examples.