oAuth plugin

Integrates OAuth authentication into Payload CMS using passport-oauth2.

Community 113 56/wk MIT v2.2.1

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 profile

Similar plugins

More in Auth