mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-01 01:40:21 +05:30
client secret can be null
This commit is contained in:
parent
3e5889e93b
commit
8fb64041df
@ -161,10 +161,10 @@ abstract class AbstractGrant implements GrantTypeInterface
|
||||
}
|
||||
|
||||
$client = $this->clientRepository->getClientEntity(
|
||||
$this->getIdentifier(),
|
||||
$clientId,
|
||||
$clientSecret,
|
||||
null,
|
||||
$this->getIdentifier()
|
||||
null
|
||||
);
|
||||
|
||||
if (!$client instanceof ClientEntityInterface) {
|
||||
|
@ -19,12 +19,12 @@ interface ClientRepositoryInterface extends RepositoryInterface
|
||||
/**
|
||||
* Get a client
|
||||
*
|
||||
* @param string $grantType The grant type used
|
||||
* @param string $clientIdentifier The client's identifier
|
||||
* @param string $clientSecret The client's secret
|
||||
* @param string|null $clientSecret The client's secret
|
||||
* @param string|null $redirectUri The client's redirect URI
|
||||
* @param string|null $grantType The grant type used
|
||||
*
|
||||
* @return \League\OAuth2\Server\Entities\Interfaces\ClientEntityInterface
|
||||
*/
|
||||
public function getClientEntity($clientIdentifier, $clientSecret, $redirectUri = null, $grantType = null);
|
||||
public function getClientEntity($grantType, $clientIdentifier, $clientSecret = null, $redirectUri = null);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user