Class Manager
Methods summary
public static
|
#
register( string $implementation )
Register an authentication implementation.
Implementation must implement
|
public static
|
|
public static
array|false
|
#
check( array $params, string $method, array $headers )
Check user's authentication This method iterates through all available authentication implementations tests in priorioty order which of them might be provided and executes |
public static
|
#
setUserGetByEmailMethod( callable $callable )
Set the method that accepts email and returns a user object MUST containg a password, id, this method MUST also contain any other attribute specified in JWT::setAttributes method |
public static
callable
|
|
public static
|
#
setAttributes( string[] $attributes )
Set attributes to be copied from user record.
Both |
public static
string[]
|
|
public static
|
#
setOnAuthenticateCallback( callable $callable )
Set a callback that will be executed after a successful authenticate
execution, |
public static
callable
|
|
public static
|
#
setOnCheckCallback( callable $callable )
Set a callback that will be executed after a successful check execution |
public static
callable
|