Skip to content

Support library for interacting with the UQ single sign on system, intended for *.uqcloud.net servers

License

Notifications You must be signed in to change notification settings

UQ-eLIPSE/uq-eait-sso

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uq-eait-sso

Support library for interacting with the UQ single sign on system, intended for *.uqcloud.net servers

Installation

npm i @uq-elipse/uq-eait-sso

Usage

/// Importing

// ES Modules style
import { SSO } from "@uq-elipse/uq-eait-sso";

// CommonJS style
const SSO = require("@uq-elipse/uq-eait-sso").SSO;

/// In your code...

// Initialise the SSO instance with your server's host
const sso = new SSO("your.server.uqcloud.net");

// To retrieve user information stored at a given token
sso.getUserInfoPayload("3nwAoSEmnbmXJC5ExlEatxyk63F7bY2M").then(payload => {
  // Do something with the user data
});

Background

The SSO/KVD system is described in more detail in the following links:

About

Support library for interacting with the UQ single sign on system, intended for *.uqcloud.net servers

Resources

License

Stars

Watchers

Forks

Packages

No packages published