Skip to content

Latest commit

 

History

History

widen-simple-one-way-sso-node

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Widen Simple One-Way SSO Node.js Example

This is an example Node.js project that leverages Express to illustrate how to easily implement Widen's Simple One-Way SSO, complete with fully functional examples.

Usage

Simply clone and run:

$ git clone [email protected]:widen/widen-sso-examples
$ cd widen-sso-examples/widen-simple-one-way-sso-node
$ npm install
$ node app.js

A running web application can now be accessed from http://localhost:8080 with the following resources available:

Configuration

There are two configuration properties defined within the app.js file. These can be modified to perform test validation against your own Collective endpoint using your supplied Shared Secret.

const endpoint = 'https://example.widencollective.com/auth/simple'
const sharedSecret = Math.random().toString(36).substring(2, 15)

Further Documentation