mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
First commit of new ResponseTypes
This commit is contained in:
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);
|
||||||
|
}
|
Reference in New Issue
Block a user