aw-watcher-spotify icon indicating copy to clipboard operation
aw-watcher-spotify copied to clipboard

New Spotify guidelines: "localhost is not allowed as redirect URI."

Open evopls opened this issue 1 year ago • 3 comments

Per the official Spotify guidelines:

Beginning on the 9th of April 2025 we will enforce the subsequent validations to all newly created apps.

We expect all clients to migrate to the new redirect URI validation by November 2025.

Requirements

Since we at Spotify, take security very seriously you must follow these requirements when defining your redirect URI:

Use HTTPS for your redirect URI, unless you are using a loopback address, when HTTP is permitted. If you are using a loopback address, use the explicit IPv4 or IPv6, like http://127.0.0.1:PORT or http://[::1]:PORT as your redirect URI. localhost is not allowed as redirect URI.

The readme suggests In the app settings, add http://localhost:8088 in the Redirect URIs section. which is no longer possible according to these guidelines.

I tried using http://127.0.0.1:8088 instead which results in: INVALID_CLIENT: Invalid redirect URI

How can I get aw-watcher-spotify to work now?

evopls avatar Sep 04 '25 09:09 evopls

Did you change it here? https://github.com/ActivityWatch/aw-watcher-spotify/blob/fe53cf6ca0ea8fc8ca23ce7ed03ec8fd44d4f643/aw_watcher_spotify/main.py#L70

Perhaps you only changed it in their dev console?

If that fixes, feel free to make a PR, or confirm that it fixes it so that I can update stuff.

ErikBjare avatar Sep 04 '25 09:09 ErikBjare

That fixed it, thank you!

I made a PR, it's my first one so please doublecheck I did things right.

evopls avatar Sep 04 '25 12:09 evopls

Very nice, thank you! Merged #32 #33 #35

ErikBjare avatar Sep 08 '25 14:09 ErikBjare