Skip to content

Commit e92b326

Browse files
committed
:octocat: Spotify PKCE support
1 parent 2b08661 commit e92b326

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Note: check the [releases](https://github.com/chillerlan/php-oauth/releases) for
140140
| [Reddit](https://www.reddit.com/dev/api) | [link](https://www.reddit.com/prefs/apps/) | [link](https://www.reddit.com/settings/privacy) | 2 ||| ||||
141141
| [Slack](https://api.slack.com) | [link](https://api.slack.com/apps) | [link](https://slack.com/apps/manage) | 2 ||| | | | |
142142
| [SoundCloud](https://developers.soundcloud.com/) | [link](https://soundcloud.com/you/apps) | [link](https://soundcloud.com/settings/connections) | 2 || | ||| |
143-
| [Spotify](https://developer.spotify.com/documentation/web-api/) | [link](https://developer.spotify.com/dashboard) | [link](https://www.spotify.com/account/apps/) | 2 ||| ||| |
143+
| [Spotify](https://developer.spotify.com/documentation/web-api/) | [link](https://developer.spotify.com/dashboard) | [link](https://www.spotify.com/account/apps/) | 2 ||| ||| |
144144
| [Steam](https://developer.valvesoftware.com/wiki/Steam_Web_API) | [link](https://steamcommunity.com/dev/apikey) | | - || | | | | |
145145
| [Stripe](https://stripe.com/docs/api) | [link](https://dashboard.stripe.com/apikeys) | [link](https://dashboard.stripe.com/account/applications) | 2 ||| | |||
146146
| [Tumblr](https://www.tumblr.com/docs/en/api/v2) | [link](https://www.tumblr.com/oauth/apps) | [link](https://www.tumblr.com/settings/apps) | 1 || | | | | |

docs/Basics/Overview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fully [PSR-7](https://www.php-fig.org/psr/psr-7/)/[PSR-17](https://www.php-fig.o
7575
| [Reddit](https://www.reddit.com/dev/api) | [link](https://www.reddit.com/prefs/apps/) | [link](https://www.reddit.com/settings/privacy) | 2 ||| ||||
7676
| [Slack](https://api.slack.com) | [link](https://api.slack.com/apps) | [link](https://slack.com/apps/manage) | 2 ||| | | | |
7777
| [SoundCloud](https://developers.soundcloud.com/) | [link](https://soundcloud.com/you/apps) | [link](https://soundcloud.com/settings/connections) | 2 || | ||| |
78-
| [Spotify](https://developer.spotify.com/documentation/web-api/) | [link](https://developer.spotify.com/dashboard) | [link](https://www.spotify.com/account/apps/) | 2 ||| ||| |
78+
| [Spotify](https://developer.spotify.com/documentation/web-api/) | [link](https://developer.spotify.com/dashboard) | [link](https://www.spotify.com/account/apps/) | 2 ||| ||| |
7979
| [Steam](https://developer.valvesoftware.com/wiki/Steam_Web_API) | [link](https://steamcommunity.com/dev/apikey) | | - || | | | | |
8080
| [Stripe](https://stripe.com/docs/api) | [link](https://dashboard.stripe.com/apikeys) | [link](https://dashboard.stripe.com/account/applications) | 2 ||| | |||
8181
| [Tumblr](https://www.tumblr.com/docs/en/api/v2) | [link](https://www.tumblr.com/oauth/apps) | [link](https://www.tumblr.com/settings/apps) | 1 || | | | | |

src/Providers/Spotify.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,17 @@
1313

1414
namespace chillerlan\OAuth\Providers;
1515

16-
use chillerlan\OAuth\Core\{AuthenticatedUser, ClientCredentials, CSRFToken, OAuth2Provider, TokenRefresh, UserInfo};
16+
use chillerlan\OAuth\Core\{AuthenticatedUser, ClientCredentials, CSRFToken, OAuth2Provider, PKCE, TokenRefresh, UserInfo};
1717

1818
/**
1919
* Spotify OAuth2
2020
*
2121
* @link https://developer.spotify.com/documentation/web-api
2222
* @link https://developer.spotify.com/documentation/web-api/tutorials/code-flow
2323
* @link https://developer.spotify.com/documentation/web-api/tutorials/client-credentials-flow
24+
* @link https://developer.spotify.com/documentation/web-api/tutorials/code-pkce-flow
2425
*/
25-
class Spotify extends OAuth2Provider implements ClientCredentials, CSRFToken, TokenRefresh, UserInfo{
26+
class Spotify extends OAuth2Provider implements ClientCredentials, CSRFToken, PKCE, TokenRefresh, UserInfo{
2627

2728
public const IDENTIFIER = 'SPOTIFY';
2829

0 commit comments

Comments
 (0)