class AuthenticateWithCookie implements MiddlewareInterface

Properties

protected LocaleManager $locales

Methods

__construct(LocaleManager $locales)

No description

__invoke(ServerRequestInterface $request, ResponseInterface $response, callable $out = null)

<p>{@inheritdoc}</p>

ServerRequestInterface
logIn(ServerRequestInterface $request)

<p>Set the application's actor instance according to the request token.</p>

getToken(ServerRequestInterface $request)

<p>Get the access token referred to by the request cookie.</p>

Details

__construct(LocaleManager $locales)

Parameters

LocaleManager $locales

__invoke(ServerRequestInterface $request, ResponseInterface $response, callable $out = null)

<p>{@inheritdoc}</p>

Parameters

ServerRequestInterface $request
ResponseInterface $response
callable $out

protected ServerRequestInterface logIn(ServerRequestInterface $request)

<p>Set the application's actor instance according to the request token.</p>

Parameters

ServerRequestInterface $request

Return Value

ServerRequestInterface

protected AccessToken|null getToken(ServerRequestInterface $request)

<p>Get the access token referred to by the request cookie.</p>

Parameters

ServerRequestInterface $request

Return Value

AccessToken|null