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

xblockchainlabs/node-authx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NPM Package to manage AuthX with Gluu server

Usage

Initialization

const config = {
  openId: {...},
  scim: {...}
  };

const {AuthX, services, routes} = require('authx')(config);

// Optional step to initialize services with an admin token, etc
// Particularly required for APIs which leverage SCIM endpoints
// Such as the Registration service
services.initialize();

Using predefined routes

// Using specific routes
app.use('/users', routes.users);

Enabling authorization on specific routes

router.post('/foo', AuthX.authorize, (req, res, next) => {...})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published