mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #622] [Issue]: Spotify DJ playlist feature lacks playlist write OAuth scopes #290
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#290
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cha1latte on GitHub (May 9, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/622
Summary
Spotify DJ playlist creation/editing appears to fail because the Spotify OAuth flow does not request playlist write permissions. The current hardcoded scope list in
packages/server/src/routes/spotify-auth.routes.tsincludes playback/read scopes, but notplaylist-modify-privateorplaylist-modify-public.Expected behavior
When the Spotify DJ playlist feature creates or updates a Spotify playlist, the connected Spotify token should include the required playlist modification scope(s), so Spotify accepts the request after the user completes OAuth.
Actual behavior
The OAuth flow only requests the existing limited scopes:
Because
playlist-modify-privateandplaylist-modify-publicare not requested, Spotify can return 403 for playlist create/edit calls. Disconnecting and reconnecting Spotify does not fix this because the reconnect grants the same limited scope list again.Steps to reproduce
Environment
936d0f5Logs, screenshots, or video
Discord report context only; no uploadable screenshots or logs were provided.
Relevant local code observation:
packages/server/src/routes/spotify-auth.routes.tsdefinesSPOTIFY_SCOPESwith playback/read scopes.playlist-modify-privateandplaylist-modify-publicare not present in the route file.Additional context
The Discord report noted that
/api/spotify/dj-mari-playlistwas not visible in the fetched Spotify route file, so the playlist endpoint may live elsewhere or in newer code. The auth route still appears to be missing the playlist-write scopes needed by Spotify for playlist creation/editing.Suggested fix: add the required playlist modification scope(s) to the Spotify OAuth scope list, then instruct users to disconnect/reconnect Spotify so their refreshed grant includes the new permissions.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: