[PR #515] [MERGED] Support Implicit Grant Authorization Flow (Fix #499) #921

Closed
opened 2026-02-28 00:02:39 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/spotipy-dev/spotipy/pull/515
Author: @IdmFoundInHim
Created: 6/18/2020
Status: Merged
Merged: 6/25/2020
Merged by: @stephanebruckert

Base: masterHead: implicit-grant


📝 Commits (10+)

  • b12a998 Add SpotifyImplicitGrant with get_access_token and get_cached_token (and minimum related functions)
  • e89d243 Add some overlooked necessary methods/values in SpotifyImplicitGrant
  • 84ea3eb Remove unsuppported functionality and make SpotifyImplicitGrant public
  • b5abd5f Allow/Expose integration of SpotifyImplicitGrant in client
  • 8518388 Add Implicit Grant tests and decrease abilities of prompt_for_user_token
  • ab48adf Add documentation and changelog entry
  • fb2da35 Touch up PEP8 compliance
  • 0b2092f Ignore long line with link for flake8
  • 6d6978b Correct changelog
  • a615f18 Restore compatibility with Python 2.7

📊 Changes

6 files changed (+451 additions, -29 deletions)

View changed files

📝 CHANGELOG.md (+6 -0)
📝 spotipy/client.py (+8 -5)
📝 spotipy/oauth2.py (+277 -17)
📝 spotipy/util.py (+1 -2)
📝 tests/integration/test_user_endpoints.py (+34 -0)
📝 tests/unit/test_oauth.py (+125 -5)

📄 Description

The code heavily borrows from the existing user authentication class, and the tests are slightly-modified copies of the SpotifyOAuth tests. All tests passed on 3.7.7


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/spotipy-dev/spotipy/pull/515 **Author:** [@IdmFoundInHim](https://github.com/IdmFoundInHim) **Created:** 6/18/2020 **Status:** ✅ Merged **Merged:** 6/25/2020 **Merged by:** [@stephanebruckert](https://github.com/stephanebruckert) **Base:** `master` ← **Head:** `implicit-grant` --- ### 📝 Commits (10+) - [`b12a998`](https://github.com/spotipy-dev/spotipy/commit/b12a99838ccc68ffd5bfecb6305a0ea8a961acb8) Add SpotifyImplicitGrant with get_access_token and get_cached_token (and minimum related functions) - [`e89d243`](https://github.com/spotipy-dev/spotipy/commit/e89d24378ec8fd075573f29d251c0c317456273d) Add some overlooked necessary methods/values in SpotifyImplicitGrant - [`84ea3eb`](https://github.com/spotipy-dev/spotipy/commit/84ea3eb1858d24359283ad066a8c3451f0007349) Remove unsuppported functionality and make SpotifyImplicitGrant public - [`b5abd5f`](https://github.com/spotipy-dev/spotipy/commit/b5abd5f0713f7ec930c098c7bc8f3427d3f09091) Allow/Expose integration of SpotifyImplicitGrant in client - [`8518388`](https://github.com/spotipy-dev/spotipy/commit/851838877f4d680187737ed4e7b586b42fce96b6) Add Implicit Grant tests and decrease abilities of prompt_for_user_token - [`ab48adf`](https://github.com/spotipy-dev/spotipy/commit/ab48adf88d8a27f66cc29099302e3cdb5d5079f6) Add documentation and changelog entry - [`fb2da35`](https://github.com/spotipy-dev/spotipy/commit/fb2da356eed64a728fde056953c67218cb852131) Touch up PEP8 compliance - [`0b2092f`](https://github.com/spotipy-dev/spotipy/commit/0b2092fd4098f528175d49c11114ccffbdf4d3c2) Ignore long line with link for flake8 - [`6d6978b`](https://github.com/spotipy-dev/spotipy/commit/6d6978b8917b2c6e4b2ddc7942401e69a5b1df33) Correct changelog - [`a615f18`](https://github.com/spotipy-dev/spotipy/commit/a615f18221fb93ff0363a2cbd45af0d60ca53eeb) Restore compatibility with Python 2.7 ### 📊 Changes **6 files changed** (+451 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+6 -0) 📝 `spotipy/client.py` (+8 -5) 📝 `spotipy/oauth2.py` (+277 -17) 📝 `spotipy/util.py` (+1 -2) 📝 `tests/integration/test_user_endpoints.py` (+34 -0) 📝 `tests/unit/test_oauth.py` (+125 -5) </details> ### 📄 Description The code heavily borrows from the existing user authentication class, and the tests are slightly-modified copies of the SpotifyOAuth tests. All tests passed on 3.7.7 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:02:39 +03:00
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/spotipy#921
No description provided.