Interface ImpersonationInterface
Namespace: Authentication\Authenticator
Method Summary
-
impersonate() public
Impersonates a user
-
isImpersonating() public
Returns true if impersonation is being done
-
stopImpersonating() public
Stops impersonation
Method Detail
impersonate() ¶ public
impersonate(Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, ArrayAccess $impersonator, ArrayAccess $impersonated): array
Impersonates a user
Parameters
-
Psr\Http\Message\ServerRequestInterface
$request The request
-
Psr\Http\Message\ResponseInterface
$response The response
-
ArrayAccess
$impersonator User who impersonates
-
ArrayAccess
$impersonated User impersonated
Returns
array
isImpersonating() ¶ public
isImpersonating(Psr\Http\Message\ServerRequestInterface $request): bool
Returns true if impersonation is being done
Parameters
-
Psr\Http\Message\ServerRequestInterface
$request The request
Returns
bool
stopImpersonating() ¶ public
stopImpersonating(Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response): array
Stops impersonation
Parameters
-
Psr\Http\Message\ServerRequestInterface
$request The request
-
Psr\Http\Message\ResponseInterface
$response The response
Returns
array