\App\ApiModule\Version0\ModelsJwtAuthenticator

Summary

Methods
Properties
Constants
__construct()
authenticate()
No public properties found
No constants found
parseAuthorizationHeader()
No protected properties found
N/A
No private methods found
$entityManager
$configurator
N/A

Properties

$entityManager

$entityManager : \App\Models\Database\EntityManager

Type

normal — Entity manager

$configurator

$configurator : \App\ApiModule\Version0\Models\JwtConfigurator

Type

normal — JWT configurator

Methods

__construct()

__construct(\App\ApiModule\Version0\Models\JwtConfigurator  $configurator, \App\Models\Database\EntityManager  $entityManager) : mixed

Constructor

Parameters

\App\ApiModule\Version0\Models\JwtConfigurator $configurator

JWT configurator

\App\Models\Database\EntityManager $entityManager

Entity manager

Returns

mixed

authenticate()

authenticate(\Psr\Http\Message\ServerRequestInterface  $request) : ?\Nette\Security\IIdentity

Parameters

\Psr\Http\Message\ServerRequestInterface $request

Returns

?\Nette\Security\IIdentity

parseAuthorizationHeader()

parseAuthorizationHeader(string  $header) : string|null

Parses the authorization header

Parameters

string $header

Authorization header

Returns

string|null —

JWT