Authenticates users through a cookie issued by an external SSO, validating it either by calling a session endpoint or by verifying a JWT locally. It adds login, logout and session endpoints per configured name and maps SSO users to a Payload auth collection with optional sign-up. An opt-in linked-accounts mode binds users to a stable provider and subject instead of email.
Payload CMS authentication plugin for Cookies from external SSO
Installation
npm i payload-auth-cookie4
Stars
0
Forks
0
Open Issues
3 weeks ago
Last Updated
83
Weekly Downloads
v0.0.15
npm Version
124.1 KB
Unpacked Size
1
Dependencies
4+1 since Sep 7
| Date | Stars |
|---|---|
| Dec 6, 2026 | 4 |
| Dec 5, 2026 | 4 |
| Dec 4, 2026 | 4 |
| Dec 3, 2026 | 4 |
| Dec 2, 2026 | 4 |
| Dec 1, 2026 | 4 |
| Nov 30, 2026 | 4 |
| Nov 29, 2026 | 4 |
| Nov 28, 2026 | 4 |
| Nov 27, 2026 | 4 |
| Nov 26, 2026 | 4 |
| Nov 25, 2026 | 4 |
| Nov 24, 2026 | 4 |
| Nov 23, 2026 | 4 |
| Nov 22, 2026 | 4 |
| Nov 21, 2026 | 4 |
| Nov 20, 2026 | 4 |
| Nov 19, 2026 | 3 |
| Nov 18, 2026 | 3 |
| Nov 17, 2026 | 3 |
| Nov 16, 2026 | 3 |
| Nov 15, 2026 | 3 |
| Nov 14, 2026 | 3 |
| Nov 13, 2026 | 3 |
| Nov 12, 2026 | 3 |
| Nov 11, 2026 | 3 |
| Nov 10, 2026 | 3 |
| Nov 9, 2026 | 3 |
| Nov 8, 2026 | 3 |
| Nov 7, 2026 | 3 |
| Nov 6, 2026 | 3 |
| Nov 5, 2026 | 3 |
| Nov 4, 2026 | 3 |
| Nov 3, 2026 | 3 |
| Nov 2, 2026 | 3 |
| Nov 1, 2026 | 3 |
| Oct 31, 2026 | 3 |
| Oct 30, 2026 | 3 |
| Oct 29, 2026 | 3 |
| Oct 28, 2026 | 3 |
| Oct 27, 2026 | 3 |
| Oct 26, 2026 | 3 |
| Oct 25, 2026 | 3 |
| Oct 24, 2026 | 3 |
| Oct 23, 2026 | 3 |
| Oct 22, 2026 | 3 |
| Oct 21, 2026 | 3 |
| Oct 20, 2026 | 3 |
| Oct 19, 2026 | 3 |
| Oct 18, 2026 | 3 |
| Oct 17, 2026 | 3 |
| Oct 16, 2026 | 3 |
| Oct 15, 2026 | 3 |
| Oct 14, 2026 | 3 |
| Oct 13, 2026 | 3 |
| Oct 12, 2026 | 3 |
| Oct 11, 2026 | 3 |
| Oct 10, 2026 | 3 |
| Oct 9, 2026 | 3 |
| Oct 8, 2026 | 3 |
| Oct 7, 2026 | 3 |
| Oct 6, 2026 | 3 |
| Oct 5, 2026 | 3 |
| Oct 4, 2026 | 3 |
| Oct 3, 2026 | 3 |
| Oct 2, 2026 | 3 |
| Oct 1, 2026 | 3 |
| Sep 30, 2026 | 3 |
| Sep 29, 2026 | 3 |
| Sep 28, 2026 | 3 |
| Sep 27, 2026 | 3 |
| Sep 26, 2026 | 3 |
| Sep 25, 2026 | 3 |
| Sep 24, 2026 | 3 |
| Sep 23, 2026 | 3 |
| Sep 22, 2026 | 3 |
| Sep 21, 2026 | 3 |
| Sep 20, 2026 | 3 |
| Sep 19, 2026 | 3 |
| Sep 18, 2026 | 3 |
| Sep 17, 2026 | 3 |
| Sep 16, 2026 | 3 |
| Sep 15, 2026 | 3 |
| Sep 14, 2026 | 3 |
| Sep 13, 2026 | 3 |
| Sep 12, 2026 | 3 |
| Sep 11, 2026 | 3 |
| Sep 10, 2026 | 3 |
| Sep 9, 2026 | 3 |
| Sep 8, 2026 | 3 |
| Sep 7, 2026 | 3 |
96−283 since Sep 7
| Date | Weekly downloads |
|---|---|
| Dec 6, 2026 | 96 |
| Dec 5, 2026 | 62 |
| Dec 4, 2026 | 76 |
| Dec 3, 2026 | 143 |
| Dec 2, 2026 | 141 |
| Dec 1, 2026 | 133 |
| Nov 30, 2026 | 130 |
| Nov 29, 2026 | 116 |
| Nov 28, 2026 | 133 |
| Nov 27, 2026 | 116 |
| Nov 26, 2026 | 48 |
| Nov 25, 2026 | 54 |
| Nov 24, 2026 | 75 |
| Nov 23, 2026 | 116 |
| Nov 22, 2026 | 343 |
| Nov 21, 2026 | 343 |
| Nov 20, 2026 | 331 |
| Nov 19, 2026 | 332 |
| Nov 18, 2026 | 334 |
| Nov 17, 2026 | 311 |
| Nov 16, 2026 | 271 |
| Nov 15, 2026 | 42 |
| Nov 14, 2026 | 20 |
| Nov 13, 2026 | 22 |
| Nov 12, 2026 | 35 |
| Nov 11, 2026 | 22 |
| Nov 10, 2026 | 23 |
| Nov 9, 2026 | 21 |
| Nov 8, 2026 | 19 |
| Nov 7, 2026 | 19 |
| Nov 6, 2026 | 17 |
| Nov 5, 2026 | 4 |
| Nov 4, 2026 | 4 |
| Nov 3, 2026 | 7 |
| Nov 2, 2026 | 14 |
| Nov 1, 2026 | 47 |
| Oct 31, 2026 | 47 |
| Oct 30, 2026 | 46 |
| Oct 29, 2026 | 45 |
| Oct 28, 2026 | 45 |
| Oct 27, 2026 | 42 |
| Oct 26, 2026 | 37 |
| Oct 25, 2026 | 3 |
| Oct 24, 2026 | 4 |
| Oct 23, 2026 | 4 |
| Oct 22, 2026 | 7 |
| Oct 21, 2026 | 23 |
| Oct 20, 2026 | 22 |
| Oct 19, 2026 | 22 |
| Oct 18, 2026 | 23 |
| Oct 17, 2026 | 24 |
| Oct 16, 2026 | 24 |
| Oct 15, 2026 | 22 |
| Oct 14, 2026 | 6 |
| Oct 13, 2026 | 6 |
| Oct 12, 2026 | 4 |
| Oct 11, 2026 | 4 |
| Oct 10, 2026 | 4 |
| Oct 9, 2026 | 12 |
| Oct 8, 2026 | 13 |
| Oct 7, 2026 | 177 |
| Oct 6, 2026 | 177 |
| Oct 5, 2026 | 183 |
| Oct 4, 2026 | 185 |
| Oct 3, 2026 | 188 |
| Oct 2, 2026 | 183 |
| Oct 1, 2026 | 303 |
| Sep 30, 2026 | 139 |
| Sep 29, 2026 | 153 |
| Sep 28, 2026 | 269 |
| Sep 27, 2026 | 269 |
| Sep 26, 2026 | 267 |
| Sep 25, 2026 | 386 |
| Sep 24, 2026 | 264 |
| Sep 23, 2026 | 264 |
| Sep 22, 2026 | 386 |
| Sep 21, 2026 | 266 |
| Sep 20, 2026 | 264 |
| Sep 19, 2026 | 381 |
| Sep 18, 2026 | 259 |
| Sep 17, 2026 | 260 |
| Sep 16, 2026 | 384 |
| Sep 15, 2026 | 249 |
| Sep 14, 2026 | 249 |
| Sep 13, 2026 | 373 |
| Sep 12, 2026 | 257 |
| Sep 11, 2026 | 257 |
| Sep 10, 2026 | 378 |
| Sep 9, 2026 | 255 |
| Sep 8, 2026 | 254 |
| Sep 7, 2026 | 379 |
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/1107996084-root)<a href="https://payloaddirectory.dev/plugins/1107996084-root"><img src="https://payloaddirectory.dev/badge/1107996084-root.svg" alt="Payload Directory"></a>README
A Payload CMS authentication plugin for external SSO cookie-based authentication.
This plugin allows you to authenticate users based on cookies set by an external SSO system. It validates sessions via a configurable session endpoint and maps users to Payload CMS collections.
Existing consumers keep email-based behavior unless accountsCollectionSlug and identity are
configured together. Linked mode authenticates the trusted central provider + subject in the
configured realm (name) before considering email. Central Supaku authentication stays authoritative;
local account rows store identity bindings and provenance, never OAuth access tokens, refresh tokens,
SSO cookies, or JWTs.
import { authPlugin, withAccountsCollection, withUsersCollection } from 'payload-auth-cookie'
const AppUsers = withUsersCollection({
slug: 'app-users',
auth: { disableLocalStrategy: true },
})
const AppAccounts = withAccountsCollection(
{ slug: 'app-accounts' },
{ usersCollectionSlug: AppUsers.slug, realm: 'app' },
)
const appAuth = {
name: 'app',
usersCollectionSlug: AppUsers.slug,
accountsCollectionSlug: AppAccounts.slug,
allowSignUp: process.env.SOCIAL_ALLOW_SIGNUPS === 'true',
identity: {
provider: 'supaku-account', // Fixed trusted namespace, never read from an untrusted request.
subjectField: 'userId', // Central Supaku JWT's stable database UUID; NOT email or OAuth ID.
allowVerifiedEmailBootstrap: false,
},
sso: {
cookieName: 'supaku_session',
loginUrl: 'https://account.supaku.com/login',
logoutUrl: 'https://account.supaku.com/logout',
jwt: { secret: process.env.SSO_JWT_SECRET! },
},
}
// buildConfig({ collections: [AppUsers, AppAccounts], plugins: [authPlugin(appAuth)] })
For central /api/session/me, the existing session validator unwraps the returned user object.
Configure identity.subjectField: 'id' for that response instead of the JWT's userId. Both paths
require successfully validated central sessions. Dot paths are supported. Pin trusted issuer and
audience in sso.jwt when your central token contract provides those claims. The configured provider
namespace must be consistent across realms that intentionally share a central identity.
withAccountCollection is an alias for withAccountsCollection. The plugin creates the accounts
collection automatically if it is absent. An explicitly supplied collection must use the helper with
matching usersCollectionSlug and realm. Custom fields and read access are supported; reserved
identity fields cannot be overridden. Account create/update/delete access stays closed, including
ordinary Local API overrideAccess: true writes. Internal writes use an opaque Payload-instance
capability, so request context flags cannot grant mutation rights. Read defaults to the linked user
reading their own rows. Configure application-specific admin read access explicitly for visibility.
The cookie strategy, login endpoint, and session inspection handlers use the same identity resolver.
The /{name}/auth/session handler only inspects existing active bindings: it never creates users or
accounts or bootstraps by email. Payload runs authentication strategies before endpoint handlers.
Consequently a full session request may enroll an identity first when automatic signup or verified
bootstrap is explicitly enabled. This preserves existing automatic strategy enrollment behavior.
Closed signup never creates a new user; configured verified bootstrap may only bind an existing,
unlinked, exact-email user. A revoked or already-linked identity cannot be claimed by another subject.
In multi-auth installations, Payload stops after the first successful strategy; use the realm's explicit
/{name}/auth/login endpoint when that realm needs enrollment and an earlier realm already authenticated.
Legacy session handlers retain email/profile synchronization without creating missing users themselves.
Expected handler denials return { authenticated: false }; infrastructure failures remain HTTP 500.
Session handlers do not invoke login callbacks.
Linked mode disables native local-password login and rejects native API-key configuration for its
user collection. Payload's global JWT fallback can otherwise target a linked collection in mixed-auth
installations; the linked cookie strategy filters those fallback results per Payload instance and
collection. Old or server-helper-minted Payload JWTs cannot substitute for central SSO. Unrelated local
collections keep their existing JWT authentication. The linked /users/me admin mirror also rechecks
the central session, active binding, and authenticated source user ID. Consumer-provided custom auth
strategies remain trusted server code and must uphold the same central identity policy.
allowSignUp: false or a changed display email.
Email changes never change the user relationship or merge users. Local user email remains unchanged.allowVerifiedEmailBootstrap: true. It requires
one exact stored email match and a boolean emailVerified: true from the validated mapped session.
It works with closed signup. Unverified, ambiguous, and already-linked users are rejected.linkAccountIdentity({ payload, config: appAuth, userID, identity: { provider, subject }, linkedBy }).
The caller must authorize its domain command and independently prove ownership of the identity.
Multiple identities may point to one user. No generic unauthenticated linking endpoint is installed.
Central Supaku still owns OAuth provider linking, token storage, and ownership verification.revokeAccountIdentity({ payload, config: appAuth, identity, linkedBy }) to revoke a binding.
linkedBy identifies the trusted actor or domain command for this operation; the original link
provenance is retained separately from revokedBy and revokedAt. Revocation is terminal through
these APIs: rows cannot be deleted, reassigned, or reactivated by login/email bootstrap.The plugin does not implement user hard-deletion or data-retention commands. Account tombstones retain required user references. PostgreSQL may reject deleting bound users through FK/NOT NULL constraints; MongoDB can leave dangling references, whose identities then fail closed when the user cannot be read. Consumers should retain bound user records or define a reviewed domain retention policy. Disposable test databases should use their harness-owned teardown rather than deleting identity tombstones.
Create the consumer's normal Payload migration and JSON schema snapshot for the new account collection and its unique indexes before enabling linked mode in production. Existing user IDs stay unchanged. The plugin does not migrate or touch central provider credentials. Migration bootstrap is an explicit trust policy: enable it only when the central service reliably verifies email ownership, then disable it after controlled migration. Alternatively seed bindings from a reviewed stable-ID mapping using the server linking API, with no email bootstrap.
Binding creation, linking, and revocation require adapter transactions. MongoDB requires a replica set;
transaction-disabled adapters fail closed for mutations. Unique indexes arbitrate races across server
processes, and failed bindings roll back the associated user creation. A fresh lookup confirms the
binding after commit. Existing active bindings remain readable without a new binding transaction.
Queries inside binding transactions disable pagination to avoid parallel count/find operations on the
same MongoDB session. Application hooks must propagate req for their own transactional writes and
avoid external side effects that database rollback cannot undo.
Linked authentication returns ephemeral user._ssoIdentity = { realm, provider, subject }. It contains
no token or cookie material. Metadata alone is not authority. The authenticated user must come
from Payload authentication; never accept a user/metadata object supplied by a client as proof.
import { findUserForAuthenticatedIdentity } from 'payload-auth-cookie'
const appUser = await findUserForAuthenticatedIdentity({
payload: req.payload,
sourceConfig: adminAuth,
targetConfig: appAuth,
user: req.user,
})
// Apply the actual app user's domain permissions and use the existing domain commands.
This helper validates the authenticated source collection, realm, configured provider, active source
binding, and source binding ownership against the user's ID before resolving the exact same central
provider/subject in the target realm. Forged hints, mismatched ownership, unbound or revoked subjects,
and provider mismatches return null. It does not combine multiple user identities or grant business
collection access. findUserByIdentity({ payload, config, identity }) is a lower-level server-only exact
lookup; its caller is responsible for equivalent source authentication and domain authorization.
pnpm test:int --run
# Disposable local MongoDB replica set; never reads DATABASE_URI:
RUN_IDENTITY_ADAPTER_TESTS=1 pnpm test:int --run src/lib/identity-mongodb.test.ts
# Disposable local Postgres cluster using the dev workspace's pinned adapter:
RUN_IDENTITY_POSTGRES_TESTS=1 PG_TEST_BIN=/path/to/postgres/bin pnpm test:int --run src/lib/identity-postgres.test.ts
Adapter suites are opt in. They start/stop only isolated local fixture servers and never use application connection strings. The Postgres suite defaults to Homebrew PostgreSQL 17 on macOS, allocates a free loopback port, closes its own pool, stops its own cluster, and removes only its temporary directory.
The public npm package remains payload-auth-cookie. GitHub Packages mirrors releases as
@supaku/payload-auth-cookie, matching the repository's organization. The previous
@markkropf/payload-auth-cookie namespace is left intact and is no longer published by this workflow.
Existing consumers of that namespace must explicitly choose the new scope to receive new mirrors;
unscoped npm consumers require no package-name change.
GitHub Packages consumers must configure @supaku:registry=https://npm.pkg.github.com and authenticate
with package read access. The workflow checks each registry independently, so retrying a missing
GitHub mirror does not republish an existing npm version.
npm install payload-auth-cookie
# or
pnpm add payload-auth-cookie
# or
yarn add payload-auth-cookie
// payload.config.ts
import { buildConfig } from 'payload'
import { authPlugin } from 'payload-auth-cookie'
export default buildConfig({
plugins: [
authPlugin({
name: 'admin',
useAdmin: true,
usersCollectionSlug: 'adminUsers',
successRedirectPath: '/admin',
sso: {
cookieName: process.env.SSO_COOKIE_NAME!,
loginUrl: process.env.SSO_LOGIN_URL!,
logoutUrl: process.env.SSO_LOGOUT_URL!,
sessionUrl: process.env.SSO_SESSION_URL!,
},
}),
],
})
// collections/Users.ts
import { withUsersCollection } from 'payload-auth-cookie/collection'
export const AdminUsers = withUsersCollection({
slug: 'adminUsers',
auth: {
disableLocalStrategy: true,
},
fields: [
{
name: 'name',
type: 'text',
},
],
})
// components/SSOLoginButton.tsx
'use client'
import { LoginButton } from 'payload-auth-cookie/client'
export default function SSOLoginButton() {
return <LoginButton href="/api/admin/auth/login" label="Sign in with SSO" />
}
// payload.config.ts
export default buildConfig({
admin: {
components: {
afterLogin: ['@/components/SSOLoginButton'],
},
},
// ...
})
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | ✅ | - | Unique name for this auth configuration (used in endpoint paths) |
usersCollectionSlug | string | ✅ | - | Slug of the users collection to authenticate against |
sso | SSOProviderConfig | ✅ | - | SSO provider configuration |
useAdmin | boolean | ❌ | false | Use this configuration for admin panel authentication |
allowSignUp | boolean | ❌ | false | Allow creating new users on first login |
successRedirectPath | string | ❌ | '/' | Path to redirect after successful authentication |
errorRedirectPath | string | ❌ | '/auth/error' | Path to redirect on authentication error |
onSuccess | function | ❌ | - | Callback after successful authentication |
onError | function | ❌ | - | Callback on authentication error |
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
cookieName | string | ✅ | - | Name of the cookie set by your SSO system |
loginUrl | string | ✅ | - | URL to redirect for SSO login |
logoutUrl | string | ✅ | - | URL to redirect for SSO logout |
sessionUrl | string | ⚠️ | - | URL to validate session (required if jwt not provided) |
jwt | JWTVerificationConfig | ⚠️ | - | JWT verification config (required if sessionUrl not provided) |
timeoutMs | number | ❌ | 5000 | Timeout for session validation requests |
When your SSO cookie contains a JWT, you can verify it locally without calling an external session endpoint:
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
secret | string | ✅ | - | Secret key for verifying JWT signatures |
algorithm | string | ❌ | 'HS256' | JWT algorithm (HS256, HS384, HS512) |
issuer | string | ❌ | - | Expected issuer (iss claim) |
audience | string | ❌ | - | Expected audience (aud claim) |
emailField | string | ❌ | 'email' | Field path to extract email (supports dot notation) |
firstNameField | string | ❌ | 'firstName' | Field path to extract first name |
lastNameField | string | ❌ | 'lastName' | Field path to extract last name |
profilePictureUrlField | string | ❌ | 'profilePictureUrl' | Field path to extract profile picture URL |
Map SSO response fields to your collection's field names:
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
fieldMappings.nameField | string | ❌ | 'name' | SSO field containing the user's full name |
fieldMappings.firstNameField | string | ❌ | 'firstName' | SSO field containing the user's first name |
fieldMappings.lastNameField | string | ❌ | 'lastName' | SSO field containing the user's last name |
fieldMappings.profilePictureUrlField | string | ❌ | 'profilePictureUrl' | SSO field containing the profile picture URL |
fieldMappings.emailVerifiedField | string | ❌ | 'emailVerified' | SSO field indicating email verification status |
fieldMappings.lastLoginAtField | string | ❌ | 'lastLoginAt' | SSO field containing last login timestamp |
authPlugin({
name: 'app',
usersCollectionSlug: 'appUsers',
sso: {
cookieName: 'sso_token',
loginUrl: 'https://sso.example.com/login',
logoutUrl: 'https://sso.example.com/logout',
jwt: {
secret: process.env.SSO_JWT_SECRET!,
},
fieldMappings: {
nameField: 'full_name', // Maps SSO's full_name → user.name
profilePictureUrlField: 'avatar', // Maps SSO's avatar → user.profilePictureUrl
},
},
})
authPlugin({
name: 'admin',
useAdmin: true,
usersCollectionSlug: 'adminUsers',
sso: {
cookieName: 'sso_token',
loginUrl: 'https://sso.example.com/login',
logoutUrl: 'https://sso.example.com/logout',
jwt: {
secret: process.env.SSO_JWT_SECRET!,
algorithm: 'HS256',
issuer: 'https://sso.example.com',
emailField: 'user.email', // For nested JWT payloads
},
},
})
/adminloginUrl with returnUrl parametersupaku_session)/api/admin/auth/loginsessionUrl or JWT verification/admin/auth/login (or custom login page)/api/app/auth/loginloginUrlYour SSO session endpoint (sessionUrl) should:
email fieldThe plugin supports multiple response formats:
Direct user data:
{
"email": "[email protected]",
"firstName": "John",
"lastName": "Doe",
"profilePictureUrl": "https://example.com/avatar.jpg"
}
Nested user object (automatically extracted):
{
"authenticated": true,
"user": {
"email": "[email protected]",
"firstName": "John",
"lastName": "Doe",
"profilePictureUrl": "https://example.com/avatar.jpg"
}
}
If your SSO cookie is a JWT, configure jwt instead of sessionUrl:
sso: {
cookieName: 'sso_token',
loginUrl: 'https://sso.example.com/login',
logoutUrl: 'https://sso.example.com/logout',
jwt: {
secret: process.env.SSO_JWT_SECRET!,
},
}
The JWT payload should contain at least an email field (configurable via emailField).
You can configure multiple auth instances for different user types. Each instance creates its own set of endpoints and correctly returns users from its associated collection:
plugins: [
authPlugin({
name: 'admin',
useAdmin: true,
usersCollectionSlug: 'adminUsers',
successRedirectPath: '/admin',
sso: adminSSOConfig,
}),
authPlugin({
name: 'app',
allowSignUp: true,
usersCollectionSlug: 'appUsers',
successRedirectPath: '/',
sso: appSSOConfig,
}),
]
With this configuration:
/api/admin/auth/session returns users from adminUsers collection/api/app/auth/session returns users from appUsers collectionsso-cookie-adminUsers, sso-cookie-appUsers)The plugin creates the following endpoints (prefixed with your configured name):
| Endpoint | Method | Description |
|---|---|---|
/api/{name}/auth/login | GET | Initiates login or validates SSO cookie |
/api/{name}/auth/logout | GET | Clears session and redirects to SSO logout |
/api/{name}/auth/session | GET | Returns current session status |
/api/users/me | GET | Returns current user (for Payload admin bar compatibility) |
The plugin automatically adds a /api/users/me endpoint to support the Payload admin bar, which expects this endpoint to exist. This works around an issue where Payload calls /api/users/me on every page load even when disableLocalStrategy: true is set on the users collection.
import {
validateSSOSession,
verifyJWTSession,
fetchSSOSession,
getEmailFromSession,
parseCookies,
generateUserToken,
} from 'payload-auth-cookie'
import { LoginButton, AuthProvider, useAuth } from 'payload-auth-cookie/client'
# Common
SSO_COOKIE_NAME=supaku_session
SSO_LOGIN_URL=https://sso.example.com/login
SSO_LOGOUT_URL=https://sso.example.com/logout
# For Session URL validation
SSO_SESSION_URL=https://sso.example.com/api/session
# For JWT verification (alternative to SESSION_URL)
SSO_JWT_SECRET=your-jwt-signing-secret
MIT
payload zitadel plugin
Log in to the Mzinga admin through Zitadel or another OIDC provider using authorization code with PKCE
72608/wk11v?
payload keycloak
Keycloak SSO-only authentication for Payload 3 using OIDC with PKCE and permission-based access helpers
5511/wk0v3
payload plugin oidc
Sign in to the Payload admin with any OpenID Connect provider
46159/wk36v2
payload social auth
OAuth login for the Payload admin with GitHub, Google, Facebook, Twitter and LinkedIn
449/wk3v3
payload better auth
Better Auth database adapter and plugins that run authentication through Payload collections
9011.9k/wk77v3 v4
payload authjs
Sign in to Payload CMS through Auth.js 5 providers and use the Auth.js session as the Payload user
903.1k/wk206v3