Hello,
I am implementing SAP XSUAA Oauth2 via GenericSSO client and it works, good job!
I also receive back a refresh token after successful login
According to docs, refreshing the token involves creating a new request like so:
Refresh Token Grant
If the current access token is expired, a new one can be requested with the [Refresh Token flow](https://docs.cloudfoundry.org/api/uaa/version/74.23.0/index.html#refresh-token).
Make a request:
POST https://[xsuaa.url]/oauth/token
Headers
Accept: application/json
Content-Type: application/x-www-form-urlencoded
client_id=[xsuaa.clientid]
client_secret=[xsuaa.clientsecret]
refresh_token=[refresh_token]
grant_type=refresh_token
Check the response:
{
"access_token": [access_token],
"token_type": "bearer",
"id_token": [...],
"refresh_token": [refresh_token],
"expires_in": [...],
"scope": [...],
"jti": [...]
}
Congratulation, you now have a refreshed access_token.
I would like to know if this support is already built in or do we need to manually do this request?
Many thanks!
Hello,
I am implementing SAP XSUAA Oauth2 via GenericSSO client and it works, good job!
I also receive back a refresh token after successful login
According to docs, refreshing the token involves creating a new request like so:
I would like to know if this support is already built in or do we need to manually do this request?
Many thanks!