mll-interceptor

1.0.1 • Public • Published

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

  1. Configure SSO Package Options

    Configure the options for your SSO package:

    const ssoOptions = {
        ssoServerUrl: 'https://login.mlldev.com'
    };
  2. Create SSO Strategy

    Create the SSO strategy using your package:

    // Import necessary modules
    const { createSSOStrategy,passport } = require('mll-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

Readme

Keywords

none

Package Sidebar

Install

npm i mll-interceptor

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

2.79 kB

Total Files

3

Last publish

Collaborators

  • harsha_vardhan_2000