New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

keycloak-nodejs-middleware

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keycloak-nodejs-middleware

Keycloak middleware for nodejs apps

1.6.0
Version published
Weekly downloads
17
1600%
Maintainers
1
Weekly downloads
 
Created

Installation

yarn add keycloak-nodejs-middleware or npm i keycloak-nodejs-middleware

How to use

import express, { Application, json } from "express";
import { keycloakMiddleware } from "keycloak-nodejs-middleware";
// more imports

const app: Application = express();

// example of middleware
app.use(json());

// fill those options with info from your `keycloak` instance
app.use(
  keycloakMiddleware({
    host: "http://localhost:8080",
    realm: "master",
    client_id: "test-client",
    client_secret: "secret_code",
  })
);

// intialize your server

Author

Atef Ben Ali

FAQs

Package last updated on 03 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts