mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
21 lines
629 B
PHP
21 lines
629 B
PHP
<?php
|
|
|
|
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 $grantType The grant type used
|
|
* @param ScopeEntityInterface[] $scopes
|
|
*
|
|
* @return \League\OAuth2\Server\Entities\Interfaces\UserEntityInterface
|
|
*/
|
|
public function getUserEntityByUserCredentials($username, $password, $grantType, array &$scopes);
|
|
}
|