lib/connector.js
function () {
      if (this.auth_url) {
        return this.auth_url;
      }
      var self = this,
        destination = {
          protocol: 'https',
          host: 'www.box.com',
          pathname: '/api/oauth2/authorize',
          search: querystring.stringify({
            response_type: 'code',
            client_id: self.client_id,
            state: self.csrf,
            redirect_uri: 'http://' + self.host + ':' + self.port + '/authorize?id=' + self.email
          })
        };

      self.auth_url = url.format(destination);
      return self.auth_url;
    }
function () {
      if (this.auth_url) {
        return this.auth_url;
      }
      var self = this,
        destination = {
          protocol: 'https',
          host: 'www.box.com',
          pathname: '/api/oauth2/authorize',
          search: querystring.stringify({
            response_type: 'code',
            client_id: self.client_id,
            state: self.csrf,
            redirect_uri: 'http://' + self.host + ':' + self.port + '/authorize?id=' + self.email
          })
        };

      self.auth_url = url.format(destination);
      return self.auth_url;
    }
function ( ) { if ( this . auth_url ) { return this . auth_url ; } var self = this , destination = { protocol : 'https' , host : 'www.box.com' , pathname : '/api/oauth2/authorize' , search : querystring . stringify ( { response_type : 'code' , client_id : self . client_id , state : self . csrf , redirect_uri : 'http://' + self . host + ':' + self . port + '/authorize?id=' + self . email } ) } ; self . auth_url = url . format ( destination ) ; return self . auth_url ; }
The returned URL should be provided to the end user when running in standalone mode.
@summary Get the authentication URL to manually navigate to.
@returns {string} The authentication URL.
The returned URL should be provided to the end user when running in standalone mode .