mirror of
https://github.com/warp-tech/warpgate.git
synced 2024-11-10 09:12:56 +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
1 changed files with 4 additions and 2 deletions
|
@ -237,8 +237,10 @@ impl ConfigProvider for DatabaseConfigProvider {
|
||||||
ref email,
|
ref email,
|
||||||
}) = credential
|
}) = credential
|
||||||
{
|
{
|
||||||
if provider.as_ref().unwrap_or(client_provider) == client_provider {
|
if provider.as_ref().unwrap_or(client_provider) == client_provider
|
||||||
return Ok(email == client_email);
|
&& email == client_email
|
||||||
|
{
|
||||||
|
return Ok(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue