How to create Tableau Connected Apps JWT tokens in C# .NET

malformed jwt

How do we generate a jwt with a list type format in .Net?

It’s easy! The trick is to add multiple “scp” claims, one by one. Under the hood, the .NET library will create an array with the list of all claims, exactly as Tableau expects. If your app just really needs 1 claim, you can still add an extra dummy one, just to force it to create the token in the right format.

correct jwt structure with multiple claims, incl. a dummy one

Live demo — .NET Tableau Connected Apps JWT implementation

Click on the link below to use a live demo of the .NET JWT Generator for Tableau. Simply add your own Connected App details and click Run to get a token). You can validate the token with

Here’s the full working code:



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store