Follow Us

lanceur backend-1900

User Authentication & Security

9e280827 e37d-4c45-96a0-5035c589d3a0 696c9f39 6850-4ed3-aa6d-385f7d9d3104

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 SDKs, these provide easy access to Kuzzle API to help you get started quickly.
To learn more read our guide


  • Javascript
  • Android
  • GO
  • try {
      await kuzzle.connect();
      const expiresIn = '1h';
      const credentials = {
        username: 'myusername',
        password: 'mypassword'
      await kuzzle.auth.login('local', credentials, expiresIn);
      console.log('Successfully connected');
    } catch (error) {
  • 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