Follow Us

Security & User Management

Enhanced Security for web, mobile & IoT

Kuzzle’s security layer provides 300+ authentication strategies, including JWT and OAuth2, and also includes fine-grained policy management to control access to your API.
Read the documentation to learn more

Developers Corner

Reduce your development time with Kuzzle's SDKs, these provide easy access to Kuzzle's API to help you get started quickly.
To learn more read our guide

  • Javascript
  • Android
  • GO
  • function login() {    
    //Connect to Kuzzle var kuzzle = new Kuzzle( "localhost", { defaultIndex: "myindex" }); //Wait for the connection to establish kuzzle.on("connected", function(error){ // Login in with 'local' strategy var expiresIn = "1h"; //Token will expire in 1 hour kuzzle.login("local", {username: "myusername", password: "mypassword"}, expiresIn, function(error, result) { if (error) { handleError(error); } else{ doSomething(result.jwt); } }); });
  • public void login() {    
    //Instantiate and connect to Kuzzle kuzzle = new Kuzzle("localhost"); //Login using 'local' authentication strategy JSONObject credentials = new JSONObject().put("username", "myusername").put("password", "mypassword"); int expiresIn = 60*60*1000;//token expires in 1 hour kuzzle.login("local", credentials, expiresIn, new ResponseListener<JSONObject>() { @Override public void onSuccess(JSONObject response) { doSomething(response); } @Override public void onError(JSONObject error) { handleError(error); } });
  • func login() {    
    //Connect to Kuzzle o := types.NewOptions() cn := websocket.NewWebSocket("localhost", o) k, _ := kuzzle.NewKuzzle(cn, o) //Create the credentials object type credentials struct { Username string `json:"username"` Password string `json:"password"` } myCredentials := credentials{"myusername", "mypassword"} //Login using the 'local' authentication strategy expiresIn := 60*60*1000 //token expires in 1 hour jwt, err := k.Login("local", myCredentials, &expiresIn) if err != nil { handleError(err.Error()) } // Now the user can access resources with the token doSomething(jwt);

They Trust us