PHP Class Thruway\Authentication\WampCraAuthProvider

Inheritance: extends AbstractAuthProviderClient
Datei anzeigen Open project: voryx/thruway Class Usage Examples

Public Methods

Method Description
getMethodName ( ) : string
getUserDb ( ) : Thruway\Authentication\WampCraUserDbInterface Get UserDB
processAuthenticate ( mixed $signature, mixed $extra = null ) : array Process authenticate
processHello ( array $args ) : array The arguments given by the server are the actual hello message ($args[0]) and some session information ($args[1])
setUserDb ( Thruway\Authentication\WampCraUserDbInterface $userDb ) Set userDB

Private Methods

Method Description
getChallengeFromExtra ( $extra ) : boolean Gets the Challenge Message from the extra object

Method Details

getMethodName() public method

public getMethodName ( ) : string
return string

getUserDb() public method

Get UserDB
public getUserDb ( ) : Thruway\Authentication\WampCraUserDbInterface
return Thruway\Authentication\WampCraUserDbInterface

processAuthenticate() public method

Process authenticate
public processAuthenticate ( mixed $signature, mixed $extra = null ) : array
$signature mixed
$extra mixed
return array

processHello() public method

The session information is an associative array that contains the sessionId and realm
public processHello ( array $args ) : array
$args array
return array

setUserDb() public method

Set userDB
public setUserDb ( Thruway\Authentication\WampCraUserDbInterface $userDb )
$userDb Thruway\Authentication\WampCraUserDbInterface