[GH-ISSUE #143] Authorize endpoint is wrong, results in "access_denied" #85

Closed
opened 2026-02-27 19:25:58 +03:00 by kerem · 2 comments
Owner

Originally created by @lu3do on GitHub (Nov 7, 2018).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/143

Since yesterday (november 6th) I was having issues with authorizing new users.
Every request returned "result=access_denied"
Turns out the endpoint used in getAuthorizeUrl() was not correct.

The endpoint should be without the trailing slash.
https://accounts.spotify.com/authorize?
and not
https://accounts.spotify.com/authorize/?

This did work before november 6th, but I guess they changed something in the Spotify API.

See:
https://twitter.com/SpotifyPlatform/status/1059932726395133952
https://twitter.com/SpotifyPlatform/status/1059932376011337737
https://developer.spotify.com/documentation/general/guides/authorization-guide/#authorization-code-flow

Originally created by @lu3do on GitHub (Nov 7, 2018). Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/143 Since yesterday (november 6th) I was having issues with authorizing new users. Every request returned "result=access_denied" Turns out the endpoint used in `getAuthorizeUrl()` was not correct. The endpoint should be without the trailing slash. `https://accounts.spotify.com/authorize?` and not `https://accounts.spotify.com/authorize/?` This did work before november 6th, but I guess they changed something in the Spotify API. See: https://twitter.com/SpotifyPlatform/status/1059932726395133952 https://twitter.com/SpotifyPlatform/status/1059932376011337737 https://developer.spotify.com/documentation/general/guides/authorization-guide/#authorization-code-flow
kerem 2026-02-27 19:25:58 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@jwilsson commented on GitHub (Nov 7, 2018):

Oh, that's not good! 😬

I'll push a patch later tonight (CET).

<!-- gh-comment-id:436624701 --> @jwilsson commented on GitHub (Nov 7, 2018): Oh, that's not good! 😬 I'll push a patch later tonight (CET).
Author
Owner

@jwilsson commented on GitHub (Nov 7, 2018):

I've just published 2.6.1 with the correct URL.

<!-- gh-comment-id:436711952 --> @jwilsson commented on GitHub (Nov 7, 2018): I've just published `2.6.1` with the correct URL.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-web-api-php#85
No description provided.