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 )
Discussion posts and replies are publicly visible
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.
Thank you . 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?
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.
Sure, thank you! I will find out a way.