You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Moonbase for Plex: Seerr Plex sign-in always fails with "That Plex account isn't the one signed in to Moonbase" #402
Version: Moonbase for Plex 3.1.1 (ghcr.io/moonfin-client/moonbase-plex:latest, commit afb2e73), Seerr 3.5.2 (Plex as media server, Plex sign-in only)
What happens
With the Seerr integration enabled, signing in to Seerr from the Moonfin app (auth type plex) always fails with:
That Plex account isn't the one signed in to Moonbase.
This happens for the server owner, with the same Plex account that is signed in to Moonbase and to Seerr. The Seerr user exists and has a plexId set in Seerr's database.
Cause
Go/internal/api/seerr.go, handleSeerrLogin:
session, user, err:=seerrSignIn(ctx, cfg.SeerrURL, endpoint, payload)
...ifendpoint=="auth/plex"&&user.PlexID!=caller.UserID {
seerrSignOut(ctx, cfg.SeerrURL, session)
writeJSON(w, http.StatusForbidden, M{"error": "That Plex account isn't the one signed in to Moonbase.", ...})
user is decoded from the response body of Seerr's POST /api/v1/auth/plex. Seerr answers with user.filter(), and User.filteredFields contains plexId (and email):
So plexId is never in the response, user.PlexID is always 0, and the check rejects every Plex sign-in. The existing tests probably don't catch this because the fake Seerr server returns plexId.
plexId has been in Seerr's filteredFields since at least v2.0.0, so this check has likely never passed against a real Seerr since the Plex Seerr proxy was added in 102bd6c (2026-11-10).
Suggested fix
Check the token before it goes to Seerr instead of relying on plexId in Seerr's answer. For example:
resolve body.AuthToken with the same plex.tv lookup Moonbase uses for callers and compare it with caller.UserID, or
simply use the caller's own verified token (caller.Token) for auth/plex instead of the one in the request body.
Either way, the "it has to be the caller's own account" guarantee stays, and it no longer depends on a field that Seerr filters out.
Steps to reproduce
Moonbase for Plex 3.1.1, owner signed in on /admin.
Seerr (Plex sign-in) set under Integrations → Seerr Integration.
In a Moonfin app connected to Moonbase, sign in to Seerr with Plex.
→ 403 "That Plex account isn't the one signed in to Moonbase."
Activity