keycloak-express-middleware 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,9 +1,8 @@
1
1
  # 🔐 Keycloak Adapter API for Node.js (Express)
2
2
 
3
3
  An adapter API to seamlessly integrate **Node.js Express** applications with **Keycloak** for authentication and authorization using **OpenID Connect (OIDC)**.
4
-
5
- This middleware provides route protection, token validation, user role management, and easy access to Keycloak-secured APIs. Ideal for securing RESTful services, microservices, and Express-based backends.
6
- it is based on 'keycloak-connect', 'express-session' and '@keycloak/keycloak-admin-client'
4
+ This middleware provides route protection, token validation, user role management. Ideal for securing RESTful services, microservices, Express-based backends, and express or javascript frontends.
5
+ it is based on 'keycloak-connect', 'express-session'
7
6
  ---
8
7
 
9
8
  ## 📦 Features
@@ -21,13 +20,13 @@ it is based on 'keycloak-connect', 'express-session' and '@keycloak/keycloak-adm
21
20
  ## 🚀 Installation
22
21
 
23
22
  ```bash
24
- npm install keycloak-adapter-api
23
+ npm install keycloak-express-middleware
25
24
  ```
26
25
 
27
26
  Or, if using Yarn:
28
27
 
29
28
  ```bash
30
- yarn add keycloak-adapter-api
29
+ yarn add keycloak-express-middleware
31
30
  ```
32
31
 
33
32
  ---
@@ -56,7 +55,7 @@ the Keycloak Admin Console → clients (left sidebar) → choose your client →
56
55
 
57
56
  ```js
58
57
  const express = require('express');
59
- const keycloackAdapter = require('keycloak-adapter-api');
58
+ const keycloackAdapter = require('keycloak-express-middleware');
60
59
 
61
60
  const app = express();
62
61
 
@@ -263,7 +262,7 @@ app.listen(PORT, () => {
263
262
  In your Express application:
264
263
 
265
264
  ```js
266
- import keycloakAdapter from 'keycloak-adapter-api';
265
+ import keycloakAdapter from 'keycloak-express-middleware';
267
266
 
268
267
  // Configure and Initialize Keycloak adapter
269
268
  keycloackAdapter.configure(app,{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloak-express-middleware",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "Adapter API to integrate Node.js (Express) applications with Keycloak. Provides middleware for authentication, authorization, token validation, and route protection via OpenID Connect.",
5
5
  "main": "index.js",
6
6
  "scripts": {