Deis.login()

Logs in by authenticating against a controller.

Usage

Hover over inputs/exits for more info.

var Deis = require('machinepack-deis');


// Logs in by authenticating against a controller.

Deis.login({

controller: 'http://deis.mydeisapp.com',

username: 'foobar',

password: 'deisrocks',

sslVerify: true,

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// The credentials provided were invalid

notAuthenticated: function () {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

controller required

The controller location of your Deis install.

'http://deis.mydeisapp.com'
username required

The username to use for login

'foobar'
password required

The password to use for login

'deisrocks'
sslVerify

disables SSL certificate verification for API requests

true

Exits

error

An unexpected error occurred.

notAuthenticated

The credentials provided were invalid

success

OK.

'f128sh6736dna97ehsh83ejcess3r434'