First commit of new ResponseTypes

This commit is contained in:
Alex Bilbie 2016-02-12 10:00:32 +00:00
parent 264eba9f20
commit dcc3f5d856
2 changed files with 44 additions and 0 deletions

View 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);
}

View 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);
}