Download page Authentication (version 8.3 and higher).
Authentication (version 8.3 and higher)
What changed?
Starting with version 8.3, the system authentication mechanism provides in-app authentication based on JWT. Cookie-based authentication is replaced with JWT based authentication transferred by the Authorization header.
Authentication token has 15 minutes expiration time. When the authentication token expires, a refresh token is used to query the new authentication token.
Impact
In order to successfully use automation (and communicate with our API) an additional authorization step is required.
/system/authendpoint is free of authentication filter for application.
Step two - implementation
A valid authentication token should be attached to the Authorization header for every BigPicture/ BigGantt/ BigTemplate request - the authorization header must contain the value of the authentication field (received as a response from system/auth).
Because our applications function in the Jira environment, the JSESSIONID cookie still has to be forwarded to our endpoints.
Step three - token refresh
An authentication token is valid for a limited time. Query for an authentication token refresh when it expires.
When the token expires, API will respond with an HTTP 401.
Query /system/reauthendpoint using refresh token in Authorization header. Use the refresh token (the value of the refresh field received as a response from system/auth) for authorization → GET /system/reauthrequest.
The response will contain a new authentication token. Use it as described in step two above.