Hallo Zusammen,
ich versuche gerade via “Integration” anzubinden. Klappt an sich gut. Nur bekomme ich keinen Refresh Token.
Wieso nicht?
Ich benutze /api/oauth/token
$body = \json_encode([
'client_id' => 'administration',
'grant_type' => 'password',
'scopes' => "write",
'username' => "admin",
'password' => "admin"
]);
Antwort:
array(4) {
["token_type"]=>
string(6) "Bearer"
["expires_in"]=>
int(600)
["access_token"]=>
string(798) "eyJ0eXAiO....."
["refresh_token"]=>
string(812) "def50200....."
}
Andere Anfrage
$body = \json_encode([
'client_id' => 'SWIAYNZGCGJLUMZYD1FQZHLMAA',
'grant_type' => 'client_credentials',
'scopes' => 'write',
'client_secret' => 'cTE3M2dXcWZPdHVqbWh0SmhOWHFNeDE5OWF2SWFZSmRwSWV1QjI'
]);
Antwort:
array(3) {
["token_type"]=>
string(6) "Bearer"
["expires_in"]=>
int(600)
["access_token"]=>
string(771) "eyJ0eXA...."
}
Wieso?
Grüßle