File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
crates/handlers/src/upstream_oauth2 Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments