Skip to main content

Returns a newly generated JWT, which provides authentication/authorization of the current user

GET 

/rest/security/jwt

Returns a newly generated JWT, which provides authentication/authorization of the current user.

Example:

curl -i -u username:password http://localhost:8080/rest/security/jwt/

To authorize against Orchestra, the JWT should be added as an Authorization header in the request:

curl -i -H "Authorization: Bearer *insert JWT here*" http://orchestra-ip:orchestra-port/path/to/resource/

Example:

curl -i -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJ1c2VybmFtZSIsInNjb3BlIjpbInNoaXJvIl0sImdlbmVyYXRlZF9vbiI6ImFnZW50IiwiZXhwIjoiMTU2MDgzOTc1NCJ9.Y1Zuzk365Yhi1ZekwYGGOHXyqFA7LXe7YvQplMTs4_o" http://localhost:8080/qsystem/rest/entrypoint/branches/

A JWT is valid for 24 hours from the time of generation.

Responses​