In the documentation for authentication, netcup states:
Zitat
The documentation wording makes me believe netcup's intent is that the original refresh token continues to be valid in perpetuity as long as it is used at least once every 30 days. That should mean it is not necessary to issue a new refresh token in the response for this endpoint. See:
The response to the refresh token grant is the same as when issuing an access token. You can optionally issue a new refresh token in the response, or if you don’t include a new refresh token, the client assumes the current refresh token will continue to be valid.
and
(H) The authorization server authenticates the client and validates
the refresh token, and if valid, issues a new access token (and,
optionally, a new refresh token).
However, this endpoint provides a response that includes the following key-values, including a new `refresh_token` which does not match behavior expected by documentation:
$ curl -s 'https://servercontrolpanel.de/realms/scp/protocol/openid-connect/token' \
-d 'client_id=scp'\
-d 'refresh_token=<refresh jwt 1>' \
-d 'grant_type=refresh_token' | jq
{
"access_token": "...",
"expires_in": 300,
"refresh_expires_in": 0,
"refresh_token": "???? ???? refresh jwt 2 ???? ????",
"token_type": "Bearer",
"id_token": "..."
"not-before-policy": 0,
"session_state": "...",
"scope": "openid profile offline_access email"
}
Alles anzeigen