Skip to content

Commit

Permalink
Be more permissive W.R.T. client_metadata retrieval (#7)
Browse files Browse the repository at this point in the history
Log a warning and continue the flow with an empty client metadata.

---------

Co-authored-by: Juliano Cezar Chagas Tavares <[email protected]>
  • Loading branch information
cobward and Juliano1612 authored Aug 6, 2024
1 parent 8f5b573 commit 6da02a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/authorization_request/parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ impl ClientMetadata {
.context("failed to parse client metadata from JSON");
}

bail!("the client metadata was not passed by reference or value")
tracing::warn!("the client metadata was not passed by reference or value");
Ok(ClientMetadata(UntypedObject::default()))
}
}

Expand Down

0 comments on commit 6da02a8

Please sign in to comment.