I'm using the REST API, I get an initial token using my username and password which works fine and gives me back a refresh token.
Request (secrets replaced with "value")
Code: Select all
client_id=&client_secret=&grant_type=password&username=value&password=value
Code: Select all
{
"access_token": "value",
"token_type": "bearer",
"refresh_token": "value",
"expires_in": 900,
".issued": "2021-06-11T15:30:14+01:00",
".expires": "2021-06-11T15:45:14+01:00"
}
Request (secrets replaced with "value")
Code: Select all
grant_type=refresh_token&refresh_token=value
Code: Select all
{
"access_token": "value",
"token_type": "bearer",
"refresh_token": "value",
"expires_in": 900,
".issued": "2021-06-11T15:34:06+01:00",
".expires": "2021-06-11T15:49:06+01:00"
}
I've also tried using /authorization_code and then refetching my initial token using the given authorization code with grant_type=authorization_code however this always fail with HTTP 401 Unauthorized.
Thank you in advance