0 follower

Final Class Yiisoft\Auth\Debug\AuthenticationMethodInterfaceProxy

InheritanceYiisoft\Auth\Debug\AuthenticationMethodInterfaceProxy
ImplementsYiisoft\Auth\AuthenticationMethodInterface

Method Details

Hide inherited methods

__construct() public method

public __construct( Yiisoft\Auth\AuthenticationMethodInterface $decorated, Yiisoft\Auth\Debug\IdentityCollector $collector ): mixed
$decorated Yiisoft\Auth\AuthenticationMethodInterface
$collector Yiisoft\Auth\Debug\IdentityCollector

                public function __construct(private readonly AuthenticationMethodInterface $decorated, private readonly IdentityCollector $collector) {}

            
authenticate() public method

public authenticate( \Psr\Http\Message\ServerRequestInterface $request ): Yiisoft\Auth\IdentityInterface|null
$request \Psr\Http\Message\ServerRequestInterface

                public function authenticate(ServerRequestInterface $request): ?IdentityInterface
{
    $identity = null;
    try {
        $identity = $this->decorated->authenticate($request);
    } finally {
        $this->collector->collect($identity);
    }
    return $identity;
}

            
challenge() public method

public challenge( \Psr\Http\Message\ResponseInterface $response ): \Psr\Http\Message\ResponseInterface
$response \Psr\Http\Message\ResponseInterface

                public function challenge(ResponseInterface $response): ResponseInterface
{
    return $this->decorated->challenge($response);
}