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