Skip to content
This repository was archived by the owner on Aug 27, 2019. It is now read-only.

Latest commit

 

History

History
44 lines (20 loc) · 778 Bytes

README.md

File metadata and controls

44 lines (20 loc) · 778 Bytes

FeideConnectJS – Feide Connect Javascript Library

Installation

Installed via bower.

in bower.json:

"feideconnectjs": "git@github.com:feideconnect/feideconnectjs.git",

Usage

The Feide Connect Javascript Library can be loaded using AMD loaded such as requirejs:

	var
		FeideConnect = require('bower/feideconnectjs/src/FeideConnect').FeideConnect,

	var config = {
		"client_id": "xxxxxxxx-xxxx-4006-xxxx-ab64d17a5xxx",
		"redirect_uri": "http://sp.example.org/",
		"debug": true,
		"instance": "dev"
	};

	var f = new FeideConnect(config);

The config object is merged with JSO config, and you may override JSO configuration directly here. The debug property will be passed on to JSO.

The instance property, can be set to dev or pilot.