public __construct ( array $authRealms, React\EventLoop\LoopInterface $loop = null ) | ||
$authRealms | array | |
$loop | React\EventLoop\LoopInterface |
public function __construct(array $authRealms, LoopInterface $loop = null)
{
$this->authRealms = $authRealms;
/*
* Set authorization the realm. Defaults to "thruway.auth"
*
* This realm is only used between the Authentication Provider Client and the Authentication Manager Client on the server.
*
*/
parent::__construct('thruway.auth', $loop);
}
/** * Constructor * * @param array $authRealms * @param \React\Http\Server $http * @param string $clientId * @param string $clientSecret */ public function __construct($authRealms, $http, $clientId, $clientSecret) { $this->clientId = $clientId; $this->clientSecret = $clientSecret; parent::__construct($authRealms); //Register Http request event $http->on('request', [$this, "onHttpRequest"]); }