[GH-ISSUE #974] Is there a way to avoid the "Enter the URL you were redirected to: " prompt when using OAuth Authorization flow? #585

Closed
opened 2026-02-27 23:23:29 +03:00 by kerem · 3 comments
Owner

Originally created by @Ori248 on GitHub (May 12, 2023).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/974

Hi. I'm using Spotipy for a project I make, and I have to say it is really convenient and clear. But I struggle with one thing regarding the OAuth authorization flow. In the app I make, my goal is to ask a user to login with their Spotify account, and then immediately proceed. However, I can't simply proceed as there is an input prompt asking me to "Enter the URL you were redirected to". Currently, I haven't found any way to proceed besides copy-pasting the URL, which as far as I understood will be an action the user will have to do before proceeding in my app. My question is as follows:
Is there any way to either avoid this prompt completely or automate the URL copy-paste process, so that the user can simply proceed in the app without further interaction after logging in?

Any help is welcomed. Thank you in advance.

Originally created by @Ori248 on GitHub (May 12, 2023). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/974 Hi. I'm using Spotipy for a project I make, and I have to say it is really convenient and clear. But I struggle with one thing regarding the OAuth authorization flow. In the app I make, my goal is to ask a user to login with their Spotify account, and then immediately proceed. However, I can't simply proceed as there is an input prompt asking me to "Enter the URL you were redirected to". Currently, I haven't found any way to proceed besides copy-pasting the URL, which as far as I understood will be an action the user will have to do before proceeding in my app. My question is as follows: Is there any way to either avoid this prompt completely or automate the URL copy-paste process, so that the user can simply proceed in the app without further interaction after logging in? Any help is welcomed. Thank you in advance.
kerem 2026-02-27 23:23:29 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@dieser-niko commented on GitHub (May 15, 2023):

add redirect_uri like this:

spotify = spotipy.Spotify(auth_manager=SpotifyOAuth(client_id= "your client id",
                                                    client_secret= "your client secret",
                                                    redirect_uri="http://localhost:8080",
                                                    scope="your scopes"))

<!-- gh-comment-id:1547882087 --> @dieser-niko commented on GitHub (May 15, 2023): add `redirect_uri` like this: ```python3 spotify = spotipy.Spotify(auth_manager=SpotifyOAuth(client_id= "your client id", client_secret= "your client secret", redirect_uri="http://localhost:8080", scope="your scopes")) ```
Author
Owner

@Ori248 commented on GitHub (Jun 15, 2023):

add redirect_uri like this:

spotify = spotipy.Spotify(auth_manager=SpotifyOAuth(client_id= "your client id",
                                                    client_secret= "your client secret",
                                                    redirect_uri="http://localhost:8080",
                                                    scope="your scopes"))

Hi, and thank you for resolving my issue! For some reason I haven't received a notification about your answer and therefore I've seen it just now. The problem turned out to be that my redirect_uri was in https instead of http lol. Thank you again!

<!-- gh-comment-id:1592947242 --> @Ori248 commented on GitHub (Jun 15, 2023): > add `redirect_uri` like this: > > ```python > spotify = spotipy.Spotify(auth_manager=SpotifyOAuth(client_id= "your client id", > client_secret= "your client secret", > redirect_uri="http://localhost:8080", > scope="your scopes")) > ``` Hi, and thank you for resolving my issue! For some reason I haven't received a notification about your answer and therefore I've seen it just now. The problem turned out to be that my redirect_uri was in https instead of http lol. Thank you again!
Author
Owner

@dieser-niko commented on GitHub (May 23, 2024):

Closing as it appears that your issue has been resolved.

<!-- gh-comment-id:2126635202 --> @dieser-niko commented on GitHub (May 23, 2024): Closing as it appears that your issue has been resolved.
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#585
No description provided.