Move grant check for client back to validate method

This commit is contained in:
sephster
2018-09-01 14:38:31 +01:00
parent 060a090479
commit cfa9b8d3b4
2 changed files with 4 additions and 10 deletions

View File

@@ -39,15 +39,9 @@ interface ClientRepositoryInterface extends RepositoryInterface
*
* @param string $clientIdentifier The client's identifier
* @param null|string $clientSecret The client's secret (if sent)
* @param null|string $grantType The type of grant the client is using (if sent)
*
* @return bool
*/
public function validateClient($clientIdentifier, $clientSecret);
/**
* Check if a client can use a grant type.
*
* @return bool
*/
public function canUseGrant($clientIdentifier, $grantType);
public function validateClient($clientIdentifier, $clientSecret, $grantType);
}