lib/PassportClient.js
function(userId, applicationId, callerIPAddress) {
    return new Promise((resolve, reject) => {
      this._start()
          .uri('/api/login')
          .urlSegment(userId)
          .urlSegment(applicationId)
          .urlParameter('ipAddress', callerIPAddress)
          .put()
          .go(this._responseHandler(resolve, reject));
    });
  }
function(userId, applicationId, callerIPAddress) {
    return new Promise((resolve, reject) => {
      this._start()
          .uri('/api/login')
          .urlSegment(userId)
          .urlSegment(applicationId)
          .urlParameter('ipAddress', callerIPAddress)
          .put()
          .go(this._responseHandler(resolve, reject));
    });
  }
function ( userId , applicationId , callerIPAddress ) { return new Promise ( ( resolve , reject ) => { this . _start ( ) . uri ( '/api/login' ) . urlSegment ( userId ) . urlSegment ( applicationId ) . urlParameter ( 'ipAddress' , callerIPAddress ) . put ( ) . go ( this . _responseHandler ( resolve , reject ) ) ; } ) ; }
Sends a ping to Passport indicating that the user was automatically logged into an application. When using
Passport's SSO or your own, you should call this if the user is already logged in centrally, but accesses an
application where they no longer have a session. This helps correctly track login counts, times and helps with
reporting.

@param {string} userId The Id of the user that was logged in.
@param {string} applicationId The Id of the application that they logged into.
@param {?string} callerIPAddress (Optional) The IP address of the end-user that is logging in. If a null value is provided
the IP address will be that of the client or last proxy that sent the request.
@return {Promise} A Promise for the Passport call.
Sends a ping to Passport indicating that the user was automatically logged into an application . When using Passport s SSO or your own you should call this if the user is already logged in centrally but accesses an application where they no longer have a session . This helps correctly track login counts times and helps with reporting .