<% var carbon = require('carbon'); var url = 'https://10.100.0.49:9443/admin/services/'; var server = new carbon.server.Server(url); print(server.authenticate('admin','admin')); %>
Server object allows to do operations on Carbon server using Jaggery.
Operation | Returns | Description |
---|---|---|
Server(options Object) | Object | Following parameters should be passed to the constructor:
|
authenticate(username String, password String) | Boolean | This method authenticated user using his password. It accepts the following parameters:
|