# sso-interceptor

> Passport interceptor for nodejs applications which intercepts api requests with sso-auth repository

Latest version **1.0.8** (published 2025-02-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install sso-interceptor
pnpm add sso-interceptor
yarn add sso-interceptor
bun add sso-interceptor
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2025-02-20 |
| First published | 2024-04-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 2.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | harsha_vardhan_2000 |
| Maintainers | harsha_vardhan_2000 |

## Links

- npm: https://www.npmjs.com/package/sso-interceptor
- npm.io page: https://npm.io/package/sso-interceptor

## Dependencies (4)

- [qs](https://npm.io/package/qs.md) ^6.12.0
- [axios](https://npm.io/package/axios.md) ^1.6.8
- [passport](https://npm.io/package/passport.md) ^0.7.0
- [passport-http-bearer](https://npm.io/package/passport-http-bearer.md) ^1.0.1

## Recent versions

- 1.0.8 (latest) — 2025-02-20
- 1.0.7 — 2025-02-12
- 1.0.6 — 2025-02-11
- 1.0.5 — 2025-02-11
- 1.0.4 — 2024-04-15
- 1.0.3 — 2024-04-15
- 1.0.2 — 2024-04-02
- 1.0.1 — 2024-04-02

## 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

1. **Configure SSO Package Options**

   Configure the options for your SSO package:

    ```javascript
    const ssoOptions = {
        ssoServerUrl: 'https://your-sso-server-url'
    };
    ```

2. **Create SSO Strategy**

   Create the SSO strategy using your package:

    ```javascript
    // 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

---
_Source: https://npm.io/package/sso-interceptor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
