mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-19 03:06:26 +00:00
Fix oidc client lookup query
join condition referenced the wrong table. Worked fine unless there were multiple identical client IDs
This commit is contained in:
parent
f42841a6ab
commit
9a8b74d744
@ -460,7 +460,7 @@ AuthInfo PostgreSQL::getSSOAuthInfo(const nlohmann::json &member, const std::str
|
|||||||
"LEFT OUTER JOIN ztc_network_oidc_config noc "
|
"LEFT OUTER JOIN ztc_network_oidc_config noc "
|
||||||
" ON noc.network_id = n.id "
|
" ON noc.network_id = n.id "
|
||||||
"LEFT OUTER JOIN ztc_oidc_config oc "
|
"LEFT OUTER JOIN ztc_oidc_config oc "
|
||||||
" ON noc.client_id = oc.client_id AND noc.org_id = o.org_id "
|
" ON noc.client_id = oc.client_id AND oc.org_id = o.org_id "
|
||||||
"WHERE n.id = $1 AND n.sso_enabled = true", networkId);
|
"WHERE n.id = $1 AND n.sso_enabled = true", networkId);
|
||||||
|
|
||||||
std::string client_id = "";
|
std::string client_id = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user