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:
parent
1c3afcdffc
commit
5c07d66774
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user