Skip to content

Commit 6d921d6

Browse files
committed
Fix
1 parent ee84e68 commit 6d921d6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/handlers/src/upstream_oauth2/callback.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ 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-
(Some(UpstreamOAuthProviderResponseMode::Query) | None, Method::GET) => {}
188+
(None, _) | (Some(UpstreamOAuthProviderResponseMode::Query) | None, Method::GET) => {}
189189
(Some(UpstreamOAuthProviderResponseMode::FormPost) | None, Method::POST) => {
190190
// We set the cookies with a `Same-Site` policy set to `Lax`, so because this is
191191
// usually a cross-site form POST, we need to render a form with the
@@ -202,7 +202,6 @@ pub(crate) async fn handler(
202202
return Ok(Html(html).into_response());
203203
}
204204
}
205-
(None, _) => {}
206205
(Some(expected), _) => return Err(RouteError::InvalidResponseMode { expected }),
207206
}
208207

0 commit comments

Comments
 (0)