mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[PR #916] [CLOSED] Add open_browser kwarg for prompt_for_user_token #1077
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#1077
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/916
Author: @joshhoughton
Created: 12/7/2022
Status: ❌ Closed
Base:
master← Head:master📝 Commits (1)
445c7faAdd open_browser kwarg for prompt_for_user_token📊 Changes
1 file changed (+6 additions, -3 deletions)
View changed files
📝
spotipy/util.py(+6 -3)📄 Description
When attempting to authenticate via
spotipy.util.prompt_for_user_token()in a headless environment (wherewebbrowserfails), it's not currently possible to authenticate.These small changes allow
open_browser=Falseto be passed to instead print out the authentication URL so that it can be accessed in another environment where a browser is accessible.First PR here, feedback appreciated!
Fixes #792
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.