mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 17:56:14 +05:30
First commit of new ResponseTypes
This commit is contained in:
parent
264eba9f20
commit
dcc3f5d856
22
src/ResponseTypes/AuthorizeClientResponseTypeInterface.php
Normal file
22
src/ResponseTypes/AuthorizeClientResponseTypeInterface.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace League\OAuth2\Server\ResponseTypes;
|
||||
|
||||
use League\OAuth2\Server\Entities\Interfaces\ClientEntityInterface;
|
||||
use League\OAuth2\Server\Entities\Interfaces\ScopeEntityInterface;
|
||||
|
||||
interface AuthorizeClientResponseTypeInterface
|
||||
{
|
||||
/**
|
||||
* Return a login form
|
||||
*
|
||||
*
|
||||
* @param \League\OAuth2\Server\Entities\Interfaces\ClientEntityInterface $client
|
||||
* @param ScopeEntityInterface[] $scopes
|
||||
* @param string $queryString
|
||||
* @param string $pathToPrivateKey
|
||||
*
|
||||
* @return \Psr\Http\Message\ResponseInterface
|
||||
*/
|
||||
public function handle(ClientEntityInterface $client, array $scopes, $queryString, $pathToPrivateKey);
|
||||
}
|
22
src/ResponseTypes/LoginUserResponseTypeInterface.php
Normal file
22
src/ResponseTypes/LoginUserResponseTypeInterface.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace League\OAuth2\Server\ResponseTypes;
|
||||
|
||||
use League\OAuth2\Server\Entities\Interfaces\ClientEntityInterface;
|
||||
use League\OAuth2\Server\Entities\Interfaces\ScopeEntityInterface;
|
||||
|
||||
interface LoginUserResponseTypeInterface
|
||||
{
|
||||
/**
|
||||
* Return a login form
|
||||
*
|
||||
*
|
||||
* @param \League\OAuth2\Server\Entities\Interfaces\ClientEntityInterface $client
|
||||
* @param ScopeEntityInterface[] $scopes
|
||||
* @param string $queryString
|
||||
* @param string $pathToPrivateKey
|
||||
*
|
||||
* @return \Psr\Http\Message\ResponseInterface
|
||||
*/
|
||||
public function handle(ClientEntityInterface $client, array $scopes, $queryString, $pathToPrivateKey);
|
||||
}
|
Loading…
Reference in New Issue
Block a user