/**
* 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"]);
}