Skip to content

Auth

Properties

repository

protected \Codefy\Framework\Auth\Repository\AuthUserRepository $repository

configContainer

protected \Qubus\Config\ConfigContainer $configContainer

rbac

protected \Codefy\Framework\Auth\Rbac\Rbac $rbac

responseFactory

protected \Psr\Http\Message\ResponseFactoryInterface $responseFactory

Methods

__construct

public __construct(\Codefy\Framework\Auth\Repository\AuthUserRepository $repository, \Qubus\Config\ConfigContainer $configContainer, \Codefy\Framework\Auth\Rbac\Rbac $rbac, \Psr\Http\Message\ResponseFactoryInterface $responseFactory): mixed

Parameters:

Parameter Type Description
$repository \Codefy\Framework\Auth\Repository\AuthUserRepository
$configContainer \Qubus\Config\ConfigContainer
$rbac \Codefy\Framework\Auth\Rbac\Rbac
$responseFactory \Psr\Http\Message\ResponseFactoryInterface

authenticate

Authenticates user if the user exists.

public authenticate(\Psr\Http\Message\ServerRequestInterface $request): \Qubus\Http\Session\SessionEntity|null

Parameters:

Parameter Type Description
$request \Psr\Http\Message\ServerRequestInterface

Throws:


unauthorized

If user does not exist, return an unauthorized response.

public unauthorized(\Psr\Http\Message\ServerRequestInterface $request): \Psr\Http\Message\ResponseInterface

Parameters:

Parameter Type Description
$request \Psr\Http\Message\ServerRequestInterface

Throws:



Automatically generated on 2025-10-13