tennitech / juke

Juke, an open-source music player, breathes new life into your music with a retro-inspired interface.
MIT License
2 stars 0 forks source link

Have Scope Determined by Backend #23

Open ImTrevorMartin opened 1 month ago

ImTrevorMartin commented 1 month ago

Currently, we have the user's access to Spotify accounts determined by the client. See here.

This is bad design practice, as an attacker could just change the request and gain edit access (?) using our token and reputation. We don't want to do this, so fix it by moving all the permissions we need here.

This way, at least, an attacker can't arbitrarily change their permissions.