Fork me on GitHub Fork me on GitHub



var carbon = require('carbon');
var url = '';
var server = new carbon.server.Server(url);



Server object allows to do operations on Carbon server using Jaggery.


Operation Returns Description
Server(options Object)ObjectFollowing parameters should be passed to the constructor:

  • options (Object): an object which contains fields like tenantID, username and server URL.
authenticate(username String, password String)BooleanThis method authenticated user using his password. It accepts the following parameters:

  • username (String) :
  • password (String) :
This returns 'true' if password authenticates username successfully and 'false' otherwise.