public function checkClientCredentials($client_id, $client_secret = null)
	{
		$client = $this->repo->find($client_id);

		if(!$client) {
			return false;
		}

		return $client_secret == $client->getSecret();
	}
public function checkClientCredentials($client_id, $client_secret = null)
	{
		$client = $this->repo->find($client_id);

		if(!$client) {
			return false;
		}

		return $client_secret == $client->getSecret();
	}
public function checkClientCredentials ( $ client_id , $ client_secret = null ) { $ client = $ this -> repo -> find ( $ client_id ) ; if ( ! $ client ) { return false ; } return $ client_secret == $ client -> getSecret ( ) ; }
Checks if client credentials are valid.

@param $client_id
@param null $client_secret
@return bool
Checks if client credentials are valid .