mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[PR #243] [MERGED] util.py: add local http server to serve redirects #832
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#832
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/spotipy-dev/spotipy/pull/243
Author: @csernazs
Created: 1/4/2018
Status: ✅ Merged
Merged: 4/1/2020
Merged by: @stephanebruckert
Base:
master← Head:master📝 Commits (1)
c500e1boauth2.py: add local http server to serve redirects📊 Changes
2 files changed (+103 additions, -18 deletions)
View changed files
📝
spotipy/oauth2.py(+91 -16)📝
spotipy/util.py(+12 -2)📄 Description
When spotify redirects the browser to localhost, serve the page with a
simple http server implemented by HTTPServer. By this way, we can obtain
the tokens the oauth service want so provide us, and no need to input the
user the redirect URL.
This method only works when the application in spotify developer dashboard
is configured to redirect the requests to localhost.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.