Based on our gateway roles, applications have to authenticate them selves through following Curl
curl --location --request POST 'https://localhost:9443/oauth2/token' \
--header 'Authorization: Basic BASIC-TOKEN' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: cookiesession1=678B2889RTUVWXYZABCDEFGHIJKLE170' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'username=USERNAME' \
--data-urlencode 'password=PASSWORD'
The problem is, each time that I call https://localhost:9443/oauth2/token the system provides a new access-token. Also the previous access token would be expired.
Even if I Call https://localhost:9443/oauth2/token with REFRESH-TOKEN grand-type, the system provides me new access-token again.
I cannot understand differences between REFRESH-TOKEN and PASSWORD grand-type. Why both procedure expired the available access-token and generate a new one?
How can I call https://localhost:9443/oauth2/token and get the available access-token rather than generating a new access-token?