[GH-ISSUE #96] Automaticy Fill In Redirect Code for New Users #55

Closed
opened 2026-02-28 14:46:40 +03:00 by kerem · 2 comments
Owner

Originally created by @ironhaven on GitHub (Oct 22, 2019).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/96

When you first open the program you need to authorize Spotify-tui in your webbrower and copy the redirect URL into the terminal. Because we already have a mock http server that sends a friendly html page it should be easy to retrieve the used callback URL.

Some cursory examination shows that the redirect and terminal input is handed in the rspotify crate.

Steps

  1. Parse http request header and return the URI in from redirect_uri.rs
  2. Call the functions around get_token
Originally created by @ironhaven on GitHub (Oct 22, 2019). Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/96 When you first open the program you need to authorize Spotify-tui in your webbrower and copy the redirect URL into the terminal. Because we already have a mock http server that sends a friendly html page it should be easy to retrieve the used callback URL. Some cursory examination shows that the redirect and terminal input is handed in the rspotify crate. ## Steps 1. Parse http request header and return the URI in from redirect_uri.rs 2. Call the functions around [get_token](https://github.com/ramsayleung/rspotify/blob/6048e3deaa32d9c55e9e83f21592426ceffc7637/src/spotify/util.rs#L83)
kerem closed this issue 2026-02-28 14:46:40 +03:00
Author
Owner

@Rigellute commented on GitHub (Oct 22, 2019):

Yes this could be nice improvement!

<!-- gh-comment-id:544920412 --> @Rigellute commented on GitHub (Oct 22, 2019): Yes this could be nice improvement!
Author
Owner

@jfaltis commented on GitHub (Oct 22, 2019):

I am not that experienced with Rust but I will take a look at it.

<!-- gh-comment-id:545021248 --> @jfaltis commented on GitHub (Oct 22, 2019): I am not that experienced with Rust but I will take a look at it.
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/spotify-tui#55
No description provided.