mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
26 lines
680 B
PHP
26 lines
680 B
PHP
<?php
|
|
/**
|
|
* @author Alex Bilbie <hello@alexbilbie.com>
|
|
* @copyright Copyright (c) Alex Bilbie
|
|
* @license http://mit-license.org/
|
|
*
|
|
* @link https://github.com/thephpleague/oauth2-server
|
|
*/
|
|
|
|
namespace League\OAuth2\Server\AuthorizationValidators;
|
|
|
|
use Psr\Http\Message\ServerRequestInterface;
|
|
|
|
interface AuthorizationValidatorInterface
|
|
{
|
|
/**
|
|
* Determine the access token in the authorization header and append OAUth properties to the request
|
|
* as attributes.
|
|
*
|
|
* @param ServerRequestInterface $request
|
|
*
|
|
* @return ServerRequestInterface
|
|
*/
|
|
public function validateAuthorization(ServerRequestInterface $request);
|
|
}
|