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
- 56
- Last publish
- May 21, 2026
More from thgh
View profileSimilar plugins
More in AuthSimple RBAC
Enables role-based access control in Payload CMS.
Magic Login
A Magic Login plugin for Payload CMS that simplifies user authentication.
RBAC
Adds role-based access control to your Payload CMS.
reCAPTCHA v3
This plugin protects Payload collection operations using Google reCAPTCHA v3.
OIDC plugin
Integrate OpenID Connect authentication into Payload CMS.
Gatekeeper
Adds role-based access control to Payload CMS v3 with wildcard permissions, auto-generated permissions per collection, and a managed Roles collection.