Refactor MintBuilder (#887)

* Refactor MintBuilder
* Validate azp instead of aud for client id
This commit is contained in:
David Caseria
2025-07-19 12:13:11 -04:00
committed by GitHub
parent 7f0e261a25
commit f018465aa6
20 changed files with 386 additions and 395 deletions

View File

@@ -82,7 +82,7 @@ async fn get_device_code_token(mint_info: &MintInfo, client_id: &str) -> (String
.expect("Nut21 defined")
.openid_discovery;
let oidc_client = OidcClient::new(openid_discovery);
let oidc_client = OidcClient::new(openid_discovery, None);
// Get the OIDC configuration
let oidc_config = oidc_client

View File

@@ -93,7 +93,7 @@ async fn get_access_token(
.expect("Nut21 defined")
.openid_discovery;
let oidc_client = OidcClient::new(openid_discovery);
let oidc_client = OidcClient::new(openid_discovery, None);
// Get the token endpoint from the OIDC configuration
let token_url = oidc_client

View File

@@ -164,7 +164,7 @@ async fn refresh_access_token(
.ok_or_else(|| anyhow::anyhow!("OIDC discovery information not available"))?
.openid_discovery;
let oidc_client = OidcClient::new(openid_discovery);
let oidc_client = OidcClient::new(openid_discovery, None);
// Get the token endpoint from the OIDC configuration
let token_url = oidc_client.get_oidc_config().await?.token_endpoint;