feat: enhance auth config (#922)

* feat: enhance auth config
This commit is contained in:
gudnuf
2025-08-05 04:55:17 -07:00
committed by GitHub
parent 2bd97e4d80
commit cceea654fe
6 changed files with 195 additions and 143 deletions

View File

@@ -17,6 +17,7 @@ use anyhow::Result;
use bip39::Mnemonic;
use cdk_integration_tests::cli::CommonArgs;
use cdk_integration_tests::shared;
use cdk_mintd::config::AuthType;
use clap::Parser;
use tokio::sync::Notify;
@@ -68,16 +69,19 @@ async fn start_fake_auth_mint(
// Enable authentication
settings.auth = Some(cdk_mintd::config::Auth {
auth_enabled: true,
openid_discovery,
openid_client_id: "cashu-client".to_string(),
mint_max_bat: 50,
enabled_mint: true,
enabled_melt: true,
enabled_swap: true,
enabled_check_mint_quote: true,
enabled_check_melt_quote: true,
enabled_restore: true,
enabled_check_proof_state: true,
mint: AuthType::Blind,
get_mint_quote: AuthType::Blind,
check_mint_quote: AuthType::Blind,
melt: AuthType::Blind,
get_melt_quote: AuthType::Blind,
check_melt_quote: AuthType::Blind,
swap: AuthType::Blind,
restore: AuthType::Blind,
check_proof_state: AuthType::Blind,
});
// Set description for the mint