[GH-ISSUE #560] Set open_browser on creation of auth_manager (SpotifyOAuth/SpotifyPKCE) #334

Closed
opened 2026-02-27 23:22:04 +03:00 by kerem · 1 comment
Owner

Originally created by @SaraBee on GitHub (Aug 26, 2020).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/560

I use Spotipy in some scripts that I am running remotely ssh'd into servers where I don't have access to a browser. It looks like the auth flow is attempting to auto-open a browser, but nothing happens. My current workaround is to run the script and complete the auth flow locally and paste the resulting url + code back into the terminal.

Since I know ahead of time that I won't have access to a browser, and because there's already an open_browser variable passed around during the auth flow, I'd love to be able to set this up front when instantiating the auth_manager so that instead of it trying to open a browser and failing, it would just give me the auth url so I could open it myself.

Originally created by @SaraBee on GitHub (Aug 26, 2020). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/560 I use Spotipy in some scripts that I am running remotely ssh'd into servers where I don't have access to a browser. It looks like the auth flow is attempting to auto-open a browser, but nothing happens. My current workaround is to run the script and complete the auth flow locally and paste the resulting url + code back into the terminal. Since I know ahead of time that I won't have access to a browser, and because there's already an `open_browser` variable passed around during the auth flow, I'd love to be able to set this up front when instantiating the auth_manager so that instead of it trying to open a browser and failing, it would just give me the auth url so I could open it myself.
Author
Owner

@stephanebruckert commented on GitHub (Aug 29, 2020):

Yep we need this. This is the continuation of https://github.com/plamere/spotipy/pull/528

<!-- gh-comment-id:683282011 --> @stephanebruckert commented on GitHub (Aug 29, 2020): Yep we need this. This is the continuation of https://github.com/plamere/spotipy/pull/528
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#334
No description provided.