Currently, this extension requires authentication through auth.mopidy.com. I propose making the authentication method configurable to allow for alternative login flows.
For example, users could connect using Spotipy. While this requires the user to create their own Spotify Developer app (which is more complex), it provides more control and flexibility.
Proposed Changes
- Add a
refresh_url config property: Set the default value to https://auth.mopidy.com/spotify/token.
- Implement Spotipy support: Add new authentication logic within the
web._refresh_token method.
- Add an auth method toggle: Introduce a configuration option to choose the preferred authentication method, defaulting to the current solution.
I would be happy to provide an implementation for this. Please let me know if you would be interested in a Pull Request to integrate these changes into the extension.
Currently, this extension requires authentication through
auth.mopidy.com. I propose making the authentication method configurable to allow for alternative login flows.For example, users could connect using Spotipy. While this requires the user to create their own Spotify Developer app (which is more complex), it provides more control and flexibility.
Proposed Changes
refresh_urlconfig property: Set the default value tohttps://auth.mopidy.com/spotify/token.web._refresh_tokenmethod.I would be happy to provide an implementation for this. Please let me know if you would be interested in a Pull Request to integrate these changes into the extension.