I have already made a successful connection using Oauth following the next tutorial: https://developer.atlassian.com/server/jira/platform/oauth/
When I make a POST request base_url/oauth/access-token, it retrieves me the following body:
{
'oauth_token_secret': 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX,
'oauth_session_handle': 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
'oauth_authorization_expires_in': '160272000',
'oauth_token': 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
'oauth_expires_in': '157680000'
}
My question is what the numbers of the *_expires_in fields are: Timestamp? Miliseconds? (If it is Timestamp, it doesn't make a lot of sense cause it refers to the century before)
I made some research and I found out that all access tokens expires in 7 days if I am correct. So what are those fields (*_expires_in) referred for?
Furthermore, Is there any way to renew the access-token? like for example with Oauth2 there is the refresh-token to do it. Or it has to be always every 7 days manually?
Finally my last question, is there any new new that Jira will support Oauth2?
Thanks.