See the main README for general information.
Generates/mints a JWT and prints it to shell’s standard output.
-
Install Extension C# for Visual Studio Code.
-
Open
jwt/csharp/generate
-
Open the
launch.json
file under.vscode
-
Supply the path to your private key, stored in PEM format
-
Replace
<issuer_id>
with your issuer id, from the Yodlee dashboard -
For user tokens, replace
[-u <username>]
with-u
and a username.
-
-
Run/debug using the
Launch Generate
configuration.
-
Compile (.NET builds automatically when running, so this step is not needed.)
$ dotnet build
-
Run
# generate an app token
dotnet run -- --key=path/to/your/private_key.pem --issuer-id=<issuer-id>
# generate a user token
dotnet run -- --key=/path/to/your/private_key.pem --issuer-id=<issuer-id> --username=<username>
-
Debug build (/bin/Debug)
dotnet publish -c Debug -r win10-x64
-
Release build (/bin/Release)
dotnet publish -c Release -r win10-x64
-
Run
generate.exe --key=<private key path> --issuer-id=<your issuer id>
-
Debug build (/bin/Debug)
dotnet publish -c Debug -r osx.10.12-x64
-
Release build (/bin/Release)
dotnet publish -c Release -r osx.10.12-x64
-
Run
bin/Release/netcoreapp3.0/osx.10.12-x64/generate --key=<private key path> --issuer-id=<your issuer id>
-
Debug build (/bin/Debug)
dotnet publish -c Debug -r ubuntu.18.04-x64
-
Release build (/bin/Release)
dotnet publish -c Release -r ubuntu.18.04-x64
-
Run
dotnet generate.dll --key=<private key path> --issuer-id=<your issuer id>
-
Uses .net core 3.0 (.net core 2.2 is an option)
-
Package Libraries used:
-
Portable.BouncyCastle 1.8.5.2
-
jose-jwt 2.4.0
-
System.CommandLine.Experimental 0.3.0-alpha.19405.1
-