Skip to content

Commit

Permalink
Added SignInWithSSO Model
Browse files Browse the repository at this point in the history
  • Loading branch information
Proziam committed Oct 10, 2024
1 parent 011f095 commit 8319e31
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,16 @@ pub enum LogoutScope {
Others,
}

#[derive(Debug, Serialize, Deserialize)]
pub struct SignInWithSSO {
#[serde(skip_serializing_if = "Option::is_none")]
pub provider_id: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub domain: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub options: Option<SSOSignInOptions>,
}

// Implement custom Debug to avoid exposing sensitive information
impl fmt::Debug for AuthClient {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
Expand Down

0 comments on commit 8319e31

Please sign in to comment.