Maybe im reading the docs wrong, but according to the documentation the refreshtoken lifetime should be access token lifetime plus 15 minutes.
In this case a access token has a lifetime of 15 minutes so the refreshtoken should be 30 minutes.
While testing this, I noticed that the refreshtoken is 24 hours, no matter if the property use_short_term_refresh is set to true or false
True:
Code: Select all
curl -X 'POST' \
'https://[serverIP]:9419/api/oauth2/token' \
-H 'accept: application/json' \
-H 'x-api-version: 1.3-rev1' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'grant_type=Password&username=[user]&password=[password]&refresh_token=string&code=string&use_short_term_refresh=true&vbr_token=string'Code: Select all
"exp": 1767727153,
"iat": 1767640753,
"nbf": 1767640753,
"refresh_chain_id": "3683b357-d07e-42ac-a144-60615af11141",Code: Select all
curl -X 'POST' \
'https://[serverIP]:9419/api/oauth2/token' \
-H 'accept: application/json' \
-H 'x-api-version: 1.3-rev1' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'grant_type=Password&username=[user]&password=[password]&refresh_token=string&code=string&use_short_term_refresh=false&vbr_token=string'Code: Select all
"exp": 1767727251,
"iat": 1767640851,
"nbf": 1767640851,
"refresh_chain_id": "e374829e-97f7-47ee-8a06-4a990e7ee6e3",