PHP Class Thruway\Authentication\AbstractAuthProviderClient

Inheritance: extends Thruway\Peer\Client
Mostra file Open project: voryx/thruway Class Usage Examples

Protected Properties

Property Type Description
$authRealms array

Public Methods

Method Description
__construct ( array $authRealms, React\EventLoop\LoopInterface $loop = null ) Constructor
getAuthRealms ( ) : array Get list supported realms
getMethodName ( ) : mixed
onSessionStart ( ClientSession $session, Thruway\Transport\TransportProviderInterface $transport ) Handles session start
preProcessAuthenticate ( array $args ) : array Pre process AuthenticateMessage Extract and validate arguments
processAuthenticate ( mixed $signature, mixed $extra = null ) : array Process AuthenticateMessage Check authenticate and return ["SUCCESS"] and ["FAILURE"]
processHello ( array $args ) : array Process HelloMessage
setAuthRealms ( array $authRealms ) Set list supported realms

Method Details

__construct() public method

Constructor
public __construct ( array $authRealms, React\EventLoop\LoopInterface $loop = null )
$authRealms array
$loop React\EventLoop\LoopInterface

getAuthRealms() public method

Get list supported realms
public getAuthRealms ( ) : array
return array

getMethodName() abstract public method

abstract public getMethodName ( ) : mixed
return mixed

onSessionStart() public method

Handles session start
public onSessionStart ( ClientSession $session, Thruway\Transport\TransportProviderInterface $transport )
$session Thruway\ClientSession
$transport Thruway\Transport\TransportProviderInterface

preProcessAuthenticate() public method

Pre process AuthenticateMessage Extract and validate arguments
public preProcessAuthenticate ( array $args ) : array
$args array
return array

processAuthenticate() public method

Process AuthenticateMessage Check authenticate and return ["SUCCESS"] and ["FAILURE"]
public processAuthenticate ( mixed $signature, mixed $extra = null ) : array
$signature mixed
$extra mixed
return array

processHello() public method

Process HelloMessage
public processHello ( array $args ) : array
$args array
return array

setAuthRealms() public method

Set list supported realms
public setAuthRealms ( array $authRealms )
$authRealms array

Property Details

$authRealms protected_oe property

protected array $authRealms
return array