mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-07 11:06:02 +00:00
implement Deserialize/Serialize for OpenIdConfig
Useful to create perl bindings.
This commit is contained in:
parent
634e35489a
commit
73c5c4af7c
@ -35,9 +35,11 @@ use openidconnect::{
|
|||||||
Scope,
|
Scope,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#[derive(Debug, Deserialize, Serialize)]
|
||||||
pub struct OpenIdConfig {
|
pub struct OpenIdConfig {
|
||||||
pub issuer_url: String,
|
pub issuer_url: String,
|
||||||
pub client_id: String,
|
pub client_id: String,
|
||||||
|
#[serde(skip_serializing_if="Option::is_none")]
|
||||||
pub client_key: Option<String>,
|
pub client_key: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user