1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-16 01:51:21 +01:00

return early if scheme doesn't match

This commit is contained in:
Jacob Fink 2023-08-18 17:02:10 -04:00
parent 1c3afcdffc
commit 5c07d66774
No known key found for this signature in database
GPG Key ID: C2F7ACF05859D008

View File

@ -22,9 +22,9 @@ public static class Saml2OptionsExtensions
return false;
}
if (context.Request.Query["scheme"].FirstOrDefault() == scheme)
if (context.Request.Query["scheme"].FirstOrDefault() != scheme)
{
return true;
return false;
}
// We need to pull out and parse the response or request SAML envelope