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
- 23
- Last publish
- May 21, 2026
More from thgh
View profileSimilar plugins
More in AuthPasskey
Adds WebAuthn passkey login and management to Payload CMS accounts via Better Auth.
Simple 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.
Subscribers
Manage subscribers and channels with magic link authentication.
payload-auth
Integrates Better Auth for enhanced authentication in Payload CMS.
RBAC
Add role-based access control features to Payload CMS.