mirror of
https://github.com/warp-tech/warpgate.git
synced 2024-09-20 06:46:17 +08:00
fixed SSO authentication getting incorrectly rejected when user has both an "any provider" and a provider specific SSO credential
This commit is contained in:
parent
41b319d931
commit
116bf9fd4d
|
@ -237,8 +237,10 @@ impl ConfigProvider for DatabaseConfigProvider {
|
|||
ref email,
|
||||
}) = credential
|
||||
{
|
||||
if provider.as_ref().unwrap_or(client_provider) == client_provider {
|
||||
return Ok(email == client_email);
|
||||
if provider.as_ref().unwrap_or(client_provider) == client_provider
|
||||
&& email == client_email
|
||||
{
|
||||
return Ok(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue