From 8638ee3cd526adbaf166729a483ec55615263043 Mon Sep 17 00:00:00 2001 From: Henrik Friedrichsen Date: Sun, 22 Dec 2024 18:54:46 +0100 Subject: [PATCH] chore(auth): Remove credential program leftovers 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. --- doc/users.md | 14 -------------- src/config.rs | 8 -------- 2 files changed, 22 deletions(-) diff --git a/doc/users.md b/doc/users.md index 698e56af..2886a367 100644 --- a/doc/users.md +++ b/doc/users.md @@ -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. diff --git a/src/config.rs b/src/config.rs index 1a89fb7e..4c3e0c83 100644 --- a/src/config.rs +++ b/src/config.rs @@ -100,17 +100,9 @@ pub struct ConfigValues { pub statusbar_format: Option, pub library_tabs: Option>, pub hide_display_names: Option, - pub credentials: Option, pub ap_port: Option, } -/// Commands used to obtain user credentials automatically. -#[derive(Serialize, Deserialize, Debug, Default, Clone)] -pub struct Credentials { - pub username_cmd: Option, - pub password_cmd: Option, -} - /// The ncspot theme. #[derive(Serialize, Deserialize, Debug, Default, Clone)] pub struct ConfigTheme {