How to get a JWT (JSON Web Token)

Overview

You must identify yourself to use a simulator that is in limited access : identification is done thanks to a JWT value that must be given as a jwt parameter of requests about it.

To get a JWT that is available for a simulator in limited access you want to use, you have to send a POST acs/jwt/obtain request where you enter some parameters that identify yourself as a user authorized for this simulator.

Procedure

Step 1. Ask for access authorization

If you want to use a simulator that is in limited access, contact nathalie.rousse@inra.fr (erecord project) to ask for access authorization (you can also directly contact the model owner if you know him).

If your request is accepted, it will be given to you the information of an authorized user of the simulator you are interested in.

With this user information (username and password), you will be able to ask for a JWT value, thanks to which you will be able to send requests about all the simulators that this user is allowed to use.

Step 2. Ask for an available JWT value

To get a JWT value, send a POST acs/jwt/obtain request with the previously given information (username and password) as parameters values.

-> Example : In a webbrowser | In command line with cURL

When this JWT value has expired, ask for a new one (Step 2.).