sso-interceptor
v1.0.4
Published
Passport interceptor for nodejs applications which intercepts api requests with sso-auth repository
Downloads
7
Readme
Passport Interceptor for MLL Node.js Projects
This passport interceptor is designed for MLL Node.js projects. It serves as an interceptor, validating authentication tokens in API calls to the backend using MLL SSO (Single Sign-On) application.
Usage
Configure SSO Package Options
Configure the options for your SSO package:
const ssoOptions = { ssoServerUrl: 'https://your-sso-server-url' };
Create SSO Strategy
Create the SSO strategy using your package:
// Import necessary modules const { createSSOStrategy,passport } = require('sso-interceptor'); // Import your SSO package // Create the SSO strategy using your package const ssoStrategy = createSSOStrategy(ssoOptions); // Use the SSO strategy with Passport passport.use(ssoStrategy);
Tech Stack
JavaScript - 18