oAuth plugin
Integrates OAuth authentication into Payload CMS using passport-oauth2.
Installation
pnpm add payload-plugin-oauth About
This plugin enables OAuth authentication for Payload CMS applications by configuring passport-oauth2. It mounts the necessary authorization and callback routes, allowing users to authenticate via third-party OAuth providers. The plugin adds a sign-in button to the login page for easy access. To set it up, developers define their OAuth settings, including client ID, client secret, and endpoints for authorization and user info retrieval in the Payload configuration. It supports multiple OAuth providers, each with unique paths for authorization and callback, ensuring flexibility in integrating various authentication methods. The plugin requires payload and react as peer dependencies, ensuring compatibility with Payload version 2. It also leverages axios for API requests to fetch user information post-authentication, facilitating user management within the Payload environment.
Package info
- Package name
payload-plugin-oauth- Latest version
2.2.1- Unpacked size
- 24 kB
- License
- MIT
- Weekly downloads
- 96
- Last publish
- May 21, 2026
More from thgh
View profileSimilar plugins
More in AuthSimple Social Login
Adds Google and Microsoft (Entra ID) OAuth social login buttons to the Payload admin panel and authenticated collections.
Better Auth
Better Auth adapter and plugins for Payload CMS.
TOTP
Add an extra layer of security with Time-based One-time Passwords (TOTP).
Passkey
Adds WebAuthn passkey login and management to Payload CMS accounts via Better Auth.
Subscribers
Manage subscribers and channels with magic link authentication.
Keycloak SSO
Adds Keycloak single sign-on to Payload CMS 3 via an OIDC auth strategy with PKCE, silent token refresh, and permission-based access control.