[PR #5237] [CLOSED] feat: add plex authentication provider #5873

Closed
opened 2026-03-13 12:39:46 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5237
Author: @davidemarcoli
Created: 10/11/2025
Status: Closed

Base: canaryHead: feat/plex-auth-provider


📝 Commits (1)

  • a647783 feat: add plex authentication provider

📊 Changes

4 files changed (+368 additions, -1 deletions)

View changed files

📝 docs/components/sidebar-content.tsx (+10 -0)
docs/content/docs/authentication/plex.mdx (+103 -0)
📝 packages/core/src/social-providers/index.ts (+3 -1)
packages/core/src/social-providers/plex.ts (+252 -0)

📄 Description

This pull request adds a new social provider to login with a plex media server account.
It's my first contribution to this project, any feedback is welcome!


Summary by cubic

Adds a Plex authentication provider with a PIN-based login flow so users can sign in with their Plex account. Includes docs and a sidebar link; no client secret required.

  • New Features
    • Added Plex social provider (id: "plex") to socialProviders.
    • Implements PIN-based auth: generate PIN, redirect to Plex, exchange for auth token.
    • Requires clientId; supports product/version/platform/device headers via X-Plex-*.
    • Fetches user profile from Plex and maps to user; supports mapProfileToUser and getUserInfo overrides.
    • Added docs at /docs/authentication/plex and a new sidebar entry.

Written for commit a64778367a. Summary will update automatically on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/5237 **Author:** [@davidemarcoli](https://github.com/davidemarcoli) **Created:** 10/11/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `feat/plex-auth-provider` --- ### 📝 Commits (1) - [`a647783`](https://github.com/better-auth/better-auth/commit/a64778367a1c5ad2b36c05bf00f1ce1c37654bd2) feat: add plex authentication provider ### 📊 Changes **4 files changed** (+368 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/sidebar-content.tsx` (+10 -0) ➕ `docs/content/docs/authentication/plex.mdx` (+103 -0) 📝 `packages/core/src/social-providers/index.ts` (+3 -1) ➕ `packages/core/src/social-providers/plex.ts` (+252 -0) </details> ### 📄 Description This pull request adds a new social provider to login with a plex media server account. It's my first contribution to this project, any feedback is welcome! <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds a Plex authentication provider with a PIN-based login flow so users can sign in with their Plex account. Includes docs and a sidebar link; no client secret required. - **New Features** - Added Plex social provider (id: "plex") to socialProviders. - Implements PIN-based auth: generate PIN, redirect to Plex, exchange for auth token. - Requires clientId; supports product/version/platform/device headers via X-Plex-*. - Fetches user profile from Plex and maps to user; supports mapProfileToUser and getUserInfo overrides. - Added docs at /docs/authentication/plex and a new sidebar entry. <sup>Written for commit a64778367a1c5ad2b36c05bf00f1ce1c37654bd2. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 12:39:46 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#5873