[GH-ISSUE #264] Access type with mode "Client Credentials" #191

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

Originally created by @j3-solutions on GitHub (Jul 17, 2023).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/264

Hello!.

Currently, if I'm not mistaken, the use of the project would be based solely on the 'authorization code flow' client authorization mode, focused on third-party usage from a web environment using a browser with the account usage acceptance window.

I've been thinking about forking the project to include the 'client credentials' authorization mode in order to implement an API that relies on calls to Spotify through your project. This way, there would be no need to use third-party account login windows (since only the developer's account would be used) and the RefreshToken would not be necessary at any time.

Have you considered including this mode in the project?

Thank you and congratulations on the project!

Originally created by @j3-solutions on GitHub (Jul 17, 2023). Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/264 Hello!. Currently, if I'm not mistaken, the use of the project would be based solely on the 'authorization code flow' client authorization mode, focused on third-party usage from a web environment using a browser with the account usage acceptance window. I've been thinking about forking the project to include the 'client credentials' authorization mode in order to implement an API that relies on calls to Spotify through your project. This way, there would be no need to use third-party account login windows (since only the developer's account would be used) and the RefreshToken would not be necessary at any time. Have you considered including this mode in the project? Thank you and congratulations on the project!
kerem closed this issue 2026-02-27 19:26:32 +03:00
Author
Owner

@jwilsson commented on GitHub (Jul 17, 2023):

Hey!
Yes, the client credentials authorization mode is supported in the library 😄 Check out the docs on it here.

<!-- gh-comment-id:1638298302 --> @jwilsson commented on GitHub (Jul 17, 2023): Hey! Yes, the client credentials authorization mode is supported in the library 😄 Check out the docs on it [here](https://github.com/jwilsson/spotify-web-api-php/blob/ecbe3e676f287675aef733e205a440c85658d765/docs/examples/access-token-with-client-credentials-flow.md).
Author
Owner

@johnanortega commented on GitHub (Jul 18, 2023):

Hi!.

Oh, thank you. I apologize for not having read all the documentation properly :-(

<!-- gh-comment-id:1639874867 --> @johnanortega commented on GitHub (Jul 18, 2023): Hi!. Oh, thank you. I apologize for not having read all the documentation properly :-(
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#191
No description provided.