Skip to content
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.

Latest commit

 

History

History
15 lines (9 loc) · 1.15 KB

File metadata and controls

15 lines (9 loc) · 1.15 KB

SSO OAuth 2.0 Implicit and Code Flow Example

This is an example of how to implement the SSO OAuth 2.0 implicit flow and code flow in NodeJS. It uses the jsonwebtoken module to generate and sign the OpenID Connect Token.

The example does not verify if the user is logged in, use the same authentication code for everyone, and should not be implemented as is. It is only meant to show how to generate the Token using the two flows.

You can see a live example of the NodeJS app here: https://enigmatic-shelf-93460.herokuapp.com/ If you would like to see a live example of the code flow please visit this URL: https://enigmatic-shelf-93460.herokuapp.com/codeflow

Run the example

In order to run the example you need to have NodeJS installed on your machine. Once you do, just run npm install from the command line to install the required modules. Then just run, npm start to start the local server.

Note

For this example, I used two seperate LiveEngage accounts that way the app code show both examples.