Constructor

/*
 Constructor is not exposed in the JS/Node SDK. You may get the instantiated
 Security object by calling Kuzzle.security
 */
var kuzzleSecurity = kuzzle.security;
// using the static instance
Security security = kuzzle.security;

// or instantiating a new Security object
Security security = new Security(kuzzle);
<?php

use \Kuzzle\Kuzzle;
use \Kuzzle\Security\Security;

$kuzzle = new Kuzzle('localhost');

// using the static instance
$security = $kuzzle->security();

// or instantiating a new Security object
$security = new Security($kuzzle);

The Security component lets you handle users permissions in Kuzzle.

Please refer to our Kuzzle permissions guide for more information.


Security(Kuzzle)

ArgumentsTypeDescription
KuzzleobjectAn instantiated Kuzzle object