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

keycloak-nodejs-middleware

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keycloak-nodejs-middleware

Keycloak middleware for nodejs apps

1.3.0
Source
npm
Version published
Weekly downloads
17
1600%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

keycloak

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