Keycloak SSO

Keycloak single sign-on for the Payload admin panel and API with permission checks

Community 0 12/wk MIT v1.0.1

Installation

pnpm add payload-keycloak

About

Keycloak SSO lets people sign in to a Payload site through a Keycloak realm, so the site has no local passwords to manage. Admins are sent to Keycloak to log in and return to the admin panel, and their session follows the Keycloak SSO session, including inactivity timeouts and silent token refresh. Users are created the first time they sign in, and access rules check permissions taken from the Keycloak user info, so a role can be allowed to edit one collection and nothing else. API requests that carry a Keycloak access token in the Authorization header are accepted too, and logging out also ends the Keycloak session.

Package info

Package name
payload-keycloak
Latest version
1.0.1
Unpacked size
118 kB
License
MIT
Weekly downloads
12
Last publish
Sep 16, 2026

Similar plugins

More in Auth

Birth month and year check at sign-up that flags minors by country and region

Lets one Payload admin panel manage content for many separate tenants

Linked accounts and role hats, with a second factor before switching to a sensitive role

Sells digital products with signed download links that expire and stop on refund

Adds passkey sign-in and passkey management to the Payload login and account screens

Lets AI assistants read and edit Payload content over MCP with scoped API keys