You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use League\Bundle\OAuth2ServerBundle\AuthorizationServer\GrantTypeInterface;
use League\OAuth2\Server\Grant\AbstractGrant;
use League\OAuth2\Server\ResponseTypes\ResponseTypeInterface;
use Nyholm\Psr7\Response;
use Psr\Http\Message\ServerRequestInterface;
// TODO remove code bloc when bundle interface and configurator will be deleted
/**
* @deprecated
*/
final class FakeLegacyGrant extends AbstractGrant implements GrantTypeInterface
{
public function getIdentifier(): string
{
return 'fake_legacy_grant';
}
public function respondToAccessTokenRequest(ServerRequestInterface $request, ResponseTypeInterface $responseType, \DateInterval $accessTokenTTL): ResponseTypeInterface
{
return new Response();
}
public function getAccessTokenTTL(): ?\DateInterval