Skip to main content
November 29, 2023
Question

Appian created JWT not validated by Tableau - JWT Plugin

  • November 29, 2023
  • 10 replies
  • 0 views

Hi Community,

I am trying to generate a JWT using createtokenwithsecretkey() in JWT plugin (using HS256). When I use the generated token and hit the Tableau signin API, I get signin error and JWT is invalid ( details error code: 10083).

However, I use the same parameter details in a python code and use the token generated, the API returns me a successful response. Can anyone help me with the issue on Appian side please? 

createtokenwithsecretkey(
externalSystemKey: "jwt", /*Set the third party credentials in Admin Console */
iss: <tableau connected apps clientID>,
aud: "tableau",
typ: "JWT",
/*jti: fn!generateuuid(123),*/
exp: 43200
)

10 replies

stefanhelzle0001
November 30, 2023

I had similar issues in the past. The problem was with the key. That key can bei either as text, base64 encoded, or a binary representation. And the Appian plugin only works with one variant. I had downloaded the plugin and checked the source code to find out what exactly is going on.

After some trial and error I had it working.

November 30, 2023

Thank you [mention:126a676c85024855948336691b0a7b92:e9ed411860ed4f2ba0265705b8793d05] . Can you please let me know what solution worked so I can try at my end?

Also, were you able to use the Embed API once you get the Signin API working?

stefanhelzle0001
November 30, 2023

I had to integrate to a different system and cannot help you with any Tableau details.

You will have to find your own way along the hints I posted. I think we asked the team that provided the keys to generate them in the format we needed.