Méthode | Description | |
---|---|---|
__construct ( ) | Constructor | |
getAuthMethods ( ) : array | Get list supported authentication methods | |
getReady ( ) : boolean | Get ready flag | |
getSubscribedEvents ( ) : array | Listen for Router events | |
getSubscribedRealmEvents ( ) : array | Listen for Realm events | |
handleAuthenticateMessage ( |
Handle Authenticate message | |
handleHelloMessage ( |
Handle HelloMessage | |
handleMessageEvent ( |
||
handleNewRealm ( |
||
initModule ( Thruway\Peer\RouterInterface $router, React\EventLoop\LoopInterface $loop ) | Gets called when the module is initialized in the router | |
onSessionClose ( |
This allows the AuthenticationManager to clean out auth methods that were registered by sessions that are dieing. Otherwise the method could be hijacked by another client in the thruway.auth realm. | |
onSessionStart ( |
Handles session started | |
readyToAuthenticate ( ) : boolean | Check ready to authenticate | |
registerAuthMethod ( array $args, array $kwargs, array $details ) : array | This is called via a WAMP RPC URI. It is registered as thruway.auth.registermethod it takes arguments in an array - ["methodName", ["realm1", "realm2", "*"], | |
setReady ( boolean $ready ) | Set ready flag |
Méthode | Description | |
---|---|---|
abortSessionUsingResponse ( |
Send an abort message to the session if the Authenticator sent a FAILURE response Returns true if the abort was sent, false otherwise | |
onAuthenticateHandler ( $authMethod, $authMethodInfo, |
Call the handler that was registered to handle the Authenticate Message | |
onHelloAuthHandler ( $authMethod, $authMethodInfo, |
Call the RPC URI that has been registered to handle Authentication Hello Messages | |
processMessage ( |
Handles all messages for authentication (Hello and Authenticate) This is called by the Realm to handle authentication | |
realmHasAuthProvider ( string $realmName ) : boolean | Checks to see if a realm has a registered auth provider |
public getAuthMethods ( ) : array | ||
Résultat | array |
public static getSubscribedEvents ( ) : array | ||
Résultat | array |
public getSubscribedRealmEvents ( ) : array | ||
Résultat | array |
public handleAuthenticateMessage ( |
||
$realm | ||
$session | ||
$msg | Thruway\Message\AuthenticateMessage |
public handleHelloMessage ( |
||
$realm | ||
$session | ||
$msg | Thruway\Message\HelloMessage |
public handleMessageEvent ( |
||
$event |
public handleNewRealm ( |
||
$event |
public initModule ( Thruway\Peer\RouterInterface $router, React\EventLoop\LoopInterface $loop ) | ||
$router | Thruway\Peer\RouterInterface | |
$loop | React\EventLoop\LoopInterface |
public onSessionClose ( |
||
$session |
public onSessionStart ( |
||
$session | ||
$transport | Thruway\Transport\TransportProviderInterface |
public readyToAuthenticate ( ) : boolean | ||
Résultat | boolean |