From b0e0800b4d3db8e5d7aa111e6329c8218c3df1d4 Mon Sep 17 00:00:00 2001 From: Juliano Cezar Chagas Tavares Date: Thu, 1 Aug 2024 18:16:14 -0300 Subject: [PATCH] Add warning and continue flow --- src/core/authorization_request/parameters.rs | 6 ++++-- src/core/authorization_request/verification/mod.rs | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/core/authorization_request/parameters.rs b/src/core/authorization_request/parameters.rs index 80633f2..917792e 100644 --- a/src/core/authorization_request/parameters.rs +++ b/src/core/authorization_request/parameters.rs @@ -163,9 +163,11 @@ impl ClientMetadata { ))? .try_into() .context("failed to parse client metadata from JSON"); + } else { + // bail!("the client metadata was not passed by reference or value") + println!("[WARNING] the client metadata was not passed by reference or value"); + return Ok(ClientMetadata(UntypedObject::default())) } - - bail!("the client metadata was not passed by reference or value") } } diff --git a/src/core/authorization_request/verification/mod.rs b/src/core/authorization_request/verification/mod.rs index 01faab7..b34f656 100644 --- a/src/core/authorization_request/verification/mod.rs +++ b/src/core/authorization_request/verification/mod.rs @@ -60,7 +60,9 @@ pub trait RequestVerifier { decoded_request: &AuthorizationRequestObject, request_jwt: String, ) -> Result<(), Error> { - bail!("'redirect_uri' client verification not implemented") + println!("[WARNING] 'redirect_uri' client verification not implemented"); + // bail!("'redirect_uri' client verification not implemented") + Ok(()) } /// Performs verification on Authorization Request Objects when `client_id_scheme` is `verifier_attestation`.