Skip to content

Commit 406a4dc

Browse files
committed
Skip serialization if not provided client_name
1 parent d56ecf4 commit 406a4dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/config/src/sections/clients.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ pub struct ClientConfig {
8080
client_auth_method: ClientAuthMethodConfig,
8181

8282
/// Name of the OAuth2 client
83+
#[serde(skip_serializing_if = "Option::is_none")]
8384
pub client_name: Option<String>,
8485

8586
/// The client secret, used by the `client_secret_basic`,

0 commit comments

Comments
 (0)