Skip to content
Snippets Groups Projects
Commit 3bbd143e authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

allow grant type 'refresh_token' as well, fixes #2507

Closes #2507

Merge request studip/studip!1694
parent 2f6ee106
No related branches found
No related tags found
No related merge requests found
......@@ -37,9 +37,10 @@ class ClientRepository implements ClientRepositoryInterface
*/
public function validateClient($clientIdentifier, $clientSecret, $grantType): bool
{
if ($grantType !== 'authorization_code') {
if (!in_array($grantType, ['authorization_code', 'refresh_token'])) {
return false;
}
$client = Client::findActive($clientIdentifier);
if (!$client) {
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment