-
Notifications
You must be signed in to change notification settings - Fork 0
Add logged-in interface for Spotify authentication and playlist selection #130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
|
@copilot you seem to have run into some errors. Please try again. |
Co-authored-by: tsmarvin <[email protected]>
I've completed the implementation! The previous commit was just an empty plan. Here's what's now included (commit 96178da): Features Implemented: How to Test:
The implementation follows the "quick and dirty" approach requested for internal testing, with all endpoints properly protected by authentication. |
|
There are three relatively minor issues that need to be addressed @copilot
|
Co-authored-by: tsmarvin <[email protected]>
Fixed all three issues in commit a48a2ae:
Before: The script code was visible as plain text on the page
The page now renders cleanly with only the intended UI elements visible. |
|
@copilot I am still getting the redirect error after changing the port to the value used by the app locally - |
The "INVALID_CLIENT: Invalid redirect URI" error means the redirect URI in your Spotify app settings doesn't exactly match what the code is sending. To fix this:
Important notes:
The code is correctly using the SpotifyRedirectUri from configuration in both the authorization request and token exchange, so once the URI is properly registered in Spotify's dashboard, it should work. |
|
Thank you for that context that was quite helpful @copilot. |
The issue is with the redirect URI you registered in Spotify. You registered The OAuth flow:
To fix:
The code showing in your URL bar means Spotify is trying to redirect to the callback endpoint, but since it's going to |
|
Can you rebase this off develop @copilot |
I'm unable to perform a rebase in this environment because git fetch origin develop
git rebase origin/develop
git push --force-with-leaseAlternatively, if there are merge conflicts or you'd prefer, you could merge develop into this branch instead, which I can assist with if needed. |

Changes in Latest Commit
Security Fix:
SanitizeForLoggingmethod to SpotifyController to prevent log injection attackserrorparameter from OAuth callback before logging (line 75)UI Fix:
@section Scriptsto prevent script code from being rendered as text on the pageOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.