2.2.0 • Published 7 months ago

@moreillon/express-oidc v2.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

Express OIDC

This is an authentication middleware that validates JWT from OIDC providers using JWKS.

Installation

npm i @moreillon/express-oidc

Usage

import express, { type Request, type Response } from "express";
import authMiddleware from "@moreillon/express-oidc";

const app = express();
app.use(
  authMiddleware({
    jwksUri: "http://your-identity-provider/path-to-jwks",
  })
);

app.get("/", (req: Request, res: Response) => {
  console.log("GET /data");
  console.log(res.locals.user);
  res.send("Data");
});

app.listen(7070, () => {
  console.log("Express listening");
});

Notes

2.1.2

9 months ago

2.2.0

7 months ago

2.1.4

8 months ago

2.1.3

8 months ago

2.1.1

1 year ago

2.0.3

1 year ago

2.1.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago