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

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

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages