Component evidence
A PSR-7 middleware that handles OAuth2 access token requests by delegating to an authorization server.
// Source: https://github.com/thephpleague/oauth2-server | License: MIT | Copyright Alex Bilbie
// Provided via justclaw.it.com; keep this notice with the code.
<?php
/**
* @author Alex Bilbie <hello@alexbilbie.com>
* @copyright Copyright (c) Alex Bilbie
* @license http://mit-license.org/
*
* @link https://github.com/thephpleague/oauth2-server
*/
declare(strict_types=1);
namespace League\OAuth2\Server\Middleware;
use League\OAuth2\Server\AuthorizationServer;
use League\OAuth2\Server\Exception\OAuthServerException;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
class AuthorizationServerMiddleware
{
public function __construct(private AuthorizationServer $server)
{
}
public function __invoke(ServerRequestInte
... (truncated -- full source via MCP)