This repository is the source driving the client-side of IDEO's Network Tool SSO account system.
You'll find usage instructions in our wiki.
- Use nvm to ensure consistent node version
npm install
npm start
(will build and then run webpack-dev-server)- Scripts will be available for use on http://localhost:9000 (e.g. http://localhost:9000/js/ideo-sso-js-sdk.js)
yarn add ideo/sso-js-sdk
ornpm install ideo/sso-js-sdk
- or in your
package.json
add"ideo-sso-js-sdk": "ideo/sso-js-sdk"
, then runyarn
ornpm install
import IdeoSSO from 'ideo-sso-js-sdk
/**
* Initializes the module
* @param {string} env - sso-profile environment
* @param {string} client - client_id of the authenticating app
* @param {string} redirect - redirect_url of the authenticating app
* @param {string} ssoHostname - sso-file host
*/
IdeoSSO.init({ env, client, redirect, ssoHostname })