Added grant and scopes to UserRepository getUserEntityByUserCredentials method

This commit is contained in:
Alex Bilbie
2016-03-22 14:18:02 +00:00
parent c880d5c1ec
commit 400eae153b
4 changed files with 24 additions and 9 deletions

View File

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