feat(demo): add story 1 — Sorano: Rock and Time
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Grav\Plugin\Api\Auth;
|
||||
|
||||
use Grav\Common\User\Interfaces\UserInterface;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
|
||||
interface AuthenticatorInterface
|
||||
{
|
||||
/**
|
||||
* Attempt to authenticate the request.
|
||||
* Returns the authenticated user, or null if this authenticator cannot handle the request.
|
||||
*/
|
||||
public function authenticate(ServerRequestInterface $request): ?UserInterface;
|
||||
}
|
||||
Reference in New Issue
Block a user