Follow Us

Security & User Management

Enhanced Security for web, mobile & IoT

Kuzzle’s security engine 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 high-level APIs to the Kuzzle Backend to help you get started quickly.
To learn more read our guide

  • Javascript
  • Android
  • GO
  • // Login in with 'local' strategy
    var expiresIn = '1h';
    
    kuzzle.login('local', { username: 'login', password: 'password' }, expiresIn, function (error, result) {
      if (error) {
        console.error('wrong username / password');
      }
    
      
    // result:
    // {_id: 'login', jwt: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiJhZ…jgzfQ.E6TMhBDlLHYG-vZ03zIBRlApdt419GBLdflsGUCmUfc'}
    
    kuzzle
      .collection('restricted', 'access')
      .createDocument({foo: 'bar'});
    });
    
  • JSONObject credentials = new JSONObject()
      .put("username", "John Doe")
      .put("password", "my secret password");
    
    kuzzle.login("local", credentials, 30000, new ResponseListener<JSONObject>() {
      @Override
      public void onSuccess(JSONObject result) {
        // ...
      }
    
      @Override
      public void onError() {
        // Handle error
      }
    });
    
  • 
    cn := websocket.NewWebSocket(":7512", o)
    k, _ := kuzzle.NewKuzzle(cn, o)
    
    type credentials struct {
      Username string `json:"username"`
      Password string `json:"password"`
    }
    myCredentials := credentials{"foo", "bar"}
    
    jwt, err := k.Login("local", myCredentials, 30000)
    if err != nil {
      fmt.Println(err.Error())
    }
    
    fmt.Println(jwt)
    

They Trust us