1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 07:36:14 -05: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

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