Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion crates/handlers/src/upstream_oauth2/callback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,22 @@ use crate::{impl_from_error_for_route, upstream_oauth2::cache::MetadataCache, Pr

#[derive(Serialize, Deserialize)]
pub struct Params {
#[serde(skip_serializing_if = "Option::is_none")]
state: Option<String>,

/// An extra parameter to track whether the POST request was re-made by us
/// to the same URL to escape Same-Site cookies restrictions
#[serde(default)]
did_mas_repost_to_itself: bool,

#[serde(skip_serializing_if = "Option::is_none")]
code: Option<String>,

#[serde(skip_serializing_if = "Option::is_none")]
error: Option<ClientErrorCode>,
#[serde(skip_serializing_if = "Option::is_none")]
error_description: Option<String>,
#[allow(dead_code)]
#[serde(skip_serializing_if = "Option::is_none")]
error_uri: Option<String>,

#[serde(flatten)]
Expand Down
Loading