mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[PR #528] [MERGED] Allow for total headless mode by instructing the user to open the URL in a browser. #928
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#928
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/528
Author: @foobuzz
Created: 7/6/2020
Status: ✅ Merged
Merged: 7/8/2020
Merged by: @stephanebruckert
Base:
master← Head:headless-oauth📝 Commits (5)
1bcb590Allow for total headless mode by instructing the user to open the URL in a browser.5cd4931Fix line too longdc93093Update changelog1bea9b6Clarify changelog entry33e0c14Remove reduntant log about pasting the URL.📊 Changes
2 files changed (+20 additions, -8 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
spotipy/oauth2.py(+18 -8)📄 Description
This adds a new option
open_browseringet_auth_responsewhich, if False, will simply print the authorization URL and ask the user to visit it and paste the URL is has been redirected to (existing interactive way to get the authorization code). This allows the setup of Spotipy on a remote machine (e.g. Raspberry Pi or VPS) in a fully headless way.open_browserdefaults to True for backward compatibility.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.