Inject client into getUserEntityByUserCredentials method

This commit is contained in:
Alex Bilbie
2016-03-22 15:11:20 +00:00
parent ca54a387c8
commit 09770dc537
5 changed files with 36 additions and 17 deletions

View File

@@ -2,6 +2,7 @@
namespace League\OAuth2\Server\Repositories;
use League\OAuth2\Server\Entities\Interfaces\ClientEntityInterface;
use League\OAuth2\Server\Entities\Interfaces\ScopeEntityInterface;
interface UserRepositoryInterface extends RepositoryInterface
@@ -9,12 +10,19 @@ interface UserRepositoryInterface extends RepositoryInterface
/**
* Get a user entity.
*
* @param string $username
* @param string $password
* @param string $grantType The grant type used
* @param ScopeEntityInterface[] $scopes
* @param string $username
* @param string $password
* @param string $grantType The grant type used
* @param \League\OAuth2\Server\Entities\Interfaces\ClientEntityInterface $clientEntity
* @param ScopeEntityInterface[] $scopes
*
* @return \League\OAuth2\Server\Entities\Interfaces\UserEntityInterface
*/
public function getUserEntityByUserCredentials($username, $password, $grantType, array &$scopes);
public function getUserEntityByUserCredentials(
$username,
$password,
$grantType,
ClientEntityInterface $clientEntity,
array &$scopes
);
}