@igloosoftware/ig-proxy
Igloo API/Resource Proxy server
Last updated 2 hours ago by brianatigloo .
UNLICENCED · Original npm · Tarball · package.json
$ cnpm install @igloosoftware/ig-proxy 
SYNC missed versions from official npm registry.

Igloo API Proxy Server

A simple proxy harness that proxies local requests to a Digital Workplace and handles authentication and authorization.

Prerequisites

You or a member of your team will need to obtain an appId and appPass) value from Igloo Customer Support.

You will need administration access to the digital workplace that you will be testing on.

Install

  • install the package into a new or existing project npm i @igloosoftware/ig-proxy

Create a proxy-config.json (or similarly named) file with your Digital Workplace credentials. Remember to never commit this file.

Sample proxy-config.json

{
  "appId": "The AppID provided by Igloo Support",
  "appPass": "The AppPass provided by Igloo Support",
  "username": "yourEmail@domain.com",
  "password": "yourSecurePassword",
  "dwpDomain": "my-dpw-url.igloocommunities.com"
}

Note the URL in dwpDomain should not include the scheme (https://)

Basic Usage

The most basic usage you can provide a config object or path to your proxy-config

require('@igloosoftware/ig-proxy')('./proxy-config.json');

// or more explicitly

const startProxy = require('@igloosoftware/ig-proxy');
startProxy('./proxy-config.json');

Advanced Usage

You can also create a proxy instance as part of a larger development harness.

const igProxy = require('@igloosoftware/ig-proxy');

async function start() {
  const config = await igProxy({
    appId: '...',
    appPass: '...',
    username: '...',
    password: '...',
    dwpDomain: '...',
    keepAliveSec: 60,
  });

  console.log(`Igloo proxy sever listening on ${config.port}`);
}

// start your harness and proxy
start();

Current Tags

  • 2.0.0                                ...           latest (2 hours ago)

18 Versions

  • 2.0.0                                ...           2 hours ago
  • 1.1.6                                ...           a year ago
  • 1.1.5                                ...           2 years ago
  • 1.1.3                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.10                                ...           4 years ago
  • 1.0.9                                ...           4 years ago
  • 1.0.8                                ...           4 years ago
  • 1.0.7                                ...           4 years ago
  • 1.0.6                                ...           4 years ago
  • 1.0.5                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Downloads
Today 27
This Week 27
This Month 27
Last Day 0
Last Week 17
Last Month 18
Dependencies (8)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |