From e7a685056c51ae24485391b5fdcd0ae36ace787b Mon Sep 17 00:00:00 2001 From: NicolasCantu Date: Tue, 3 Jun 2025 18:37:27 +0200 Subject: [PATCH] Add idnot config --- src/config.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/config.rs b/src/config.rs index ffd9197..2db45ab 100644 --- a/src/config.rs +++ b/src/config.rs @@ -11,11 +11,15 @@ pub struct Config { pub core_url: String, pub core_wallet: Option, pub ws_url: String, + pub http_url: String, pub wallet_name: String, pub network: Network, pub electrum_url: String, pub zmq_url: String, pub data_dir: String, + pub idnot_client_secret: Option, + pub idnot_client_id: Option, + pub idnot_redirect_uri: Option, } impl Config { @@ -53,6 +57,10 @@ impl Config { .remove("ws_url") .ok_or(Error::msg("No \"ws_url\""))? .to_owned(), + http_url: file_content + .remove("http_url") + .ok_or(Error::msg("No \"http_url\""))? + .to_owned(), wallet_name: file_content .remove("wallet_name") .ok_or(Error::msg("No \"wallet_name\""))? @@ -75,6 +83,12 @@ impl Config { .remove("data_dir") .ok_or(Error::msg("No \"data_dir\""))? .to_owned(), + idnot_client_id: file_content + .remove("idnot_client_id"), + idnot_client_secret: file_content + .remove("idnot_client_secret"), + idnot_redirect_uri: file_content + .remove("idnot_redirect_uri"), }; Ok(config)