You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
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.6.2
latest
Source
npm
Version published
Weekly downloads
29
26.09%
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 05 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