4 ms·
Every time I see an integration with Spotify built for a single user to run themselves, it pains me that you have to setup an OAuth application and server to ge
by MattIPv4 4y ago
Every time I see an integration with Spotify built for a single user to run themselves, it pains me that you have to setup an OAuth application and server to get a token for your own account. I just wish Spotify would let you generate tokens for your own account, so you can properly automate playlists etc.
- izzygonzalez 4y agoCan you automate token generation? The repo uses a middleware server. I'm wondering what other approaches there are.
- deleted 4y ago[deleted]
- beart 4y agoYes! Just last weekend I threw together a quick project to create a Discord bot that adds all spotify links to a playlist. It was smooth as butter until I got to the Spotify Auth flow. Decided it wasn't worth the time at that point.
- conradludgate 4y agoI provided a proxy service[0] to do the oauth handling. It gives you a permanent token that let's you access your up to date oauth tokens, of course with the caveat that you have to trust me. This is not really a scalable solution. I wanted to try and get the terraform provider to handle the oauth flow but it's tricky because of the way terraform providers run [0] https://github.com/conradludgate/oauth2-proxy https://github.com/conradludgate/oauth2-proxy
- krageon 4y agoCan't you just MITM a login and use the login token? The login flow never materially changes (it's always the same two credentials), that seems like way less of a pain than whatever this OAuth flow is supposed to be.