Skip to content

Commit c1e51c3

Browse files
committed
Fix
1 parent 6d921d6 commit c1e51c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/handlers/src/upstream_oauth2/callback.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ pub(crate) async fn handler(
185185
// the query parameters for GET requests. We need to then look at the method do
186186
// make sure it matches the expected `response_mode`
187187
match (provider.response_mode, method) {
188-
(None, _) | (Some(UpstreamOAuthProviderResponseMode::Query) | None, Method::GET) => {}
189188
(Some(UpstreamOAuthProviderResponseMode::FormPost) | None, Method::POST) => {
190189
// We set the cookies with a `Same-Site` policy set to `Lax`, so because this is
191190
// usually a cross-site form POST, we need to render a form with the
@@ -202,6 +201,7 @@ pub(crate) async fn handler(
202201
return Ok(Html(html).into_response());
203202
}
204203
}
204+
(None, _) | (Some(UpstreamOAuthProviderResponseMode::Query), Method::GET) => {}
205205
(Some(expected), _) => return Err(RouteError::InvalidResponseMode { expected }),
206206
}
207207

0 commit comments

Comments
 (0)