As the name says, it is made to be basic and direct.
Auth Class Basicis default authentication class
Name | Description |
---|---|
getUser | Function getUser |
Get a Auth User by ServerRequestInterface | |
login | Function function |
Check Auth User and return a string token of on success or null in error case |
Description
public static getUser (\ServerRequestInterface $request, string|null $authClass)
Function getUser Get a Auth User by ServerRequestInterface
Parameters
(\ServerRequestInterface) $request
(string|null) $authClass
Return Values
\AuthInterface|null
Description
public static login (\ServerRequestInterface $request, array $findBy, string $passKey, string $appKey, string $expiration, string $nobefore)
Function function Check Auth User and return a string token of on success or null in error case
Parameters
(\ServerRequestInterface) $request
(array) $findBy
(string) $passKey
(string) $appKey
(string) $expiration
(string) $nobefore
Return Values
string|null