Skip to content

Commit

Permalink
chore(auth): Remove credential program leftovers
Browse files Browse the repository at this point in the history
With the OAuth2 flow being default now the logic to fetch login credentials via
external programs (i.e. `pass`) has become obsolote.

This change removes documentation/config leftovers.
  • Loading branch information
hrkfdn committed Dec 22, 2024
1 parent e89f540 commit 8638ee3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
14 changes: 0 additions & 14 deletions doc/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,17 +459,3 @@ The credentials are stored in `librespot/credentials.json` in the user's cache d

The `logout` command can be used to remove cached credentials. See
[Vim-Like Commands](#vim-like-commands).

### Using a Password Manager
If you would like ncspot to retrieve your login data from command results,
i.e. because you use a password manager like `pass`, you can add the following
configuration:

```toml
[credentials]
username_cmd = "echo username"
password_cmd = "pass spotify.com/username"
```

Do note that this is only required for the initial login or when your credential
token has expired.
8 changes: 0 additions & 8 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,9 @@ pub struct ConfigValues {
pub statusbar_format: Option<String>,
pub library_tabs: Option<Vec<LibraryTab>>,
pub hide_display_names: Option<bool>,
pub credentials: Option<Credentials>,
pub ap_port: Option<u16>,
}

/// Commands used to obtain user credentials automatically.
#[derive(Serialize, Deserialize, Debug, Default, Clone)]
pub struct Credentials {
pub username_cmd: Option<String>,
pub password_cmd: Option<String>,
}

/// The ncspot theme.
#[derive(Serialize, Deserialize, Debug, Default, Clone)]
pub struct ConfigTheme {
Expand Down

0 comments on commit 8638ee3

Please sign in to comment.