mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 20:08:02 +00:00
2089992d75
* feat(crypto): use passwap for machine and app secrets * fix command package tests * add hash generator command test * naming convention, fix query tests * rename PasswordHasher and cleanup start commands * add reducer tests * fix intergration tests, cleanup old config * add app secret unit tests * solve setup panics * fix push of updated events * add missing event translations * update documentation * solve linter errors * remove nolint:SA1019 as it doesn't seem to help anyway * add nolint to deprecated filter usage * update users migration version * remove unused ClientSecret from APIConfigChangedEvent --------- Co-authored-by: Livio Spring <livio.a@gmail.com>
29 lines
993 B
SQL
29 lines
993 B
SQL
SELECT s.creation_date,
|
|
s.change_date,
|
|
s.resource_owner,
|
|
s.state,
|
|
s.user_agent_id,
|
|
s.user_id,
|
|
u.username,
|
|
l.login_name,
|
|
h.display_name,
|
|
h.avatar_key,
|
|
s.selected_idp_config_id,
|
|
s.password_verification,
|
|
s.passwordless_verification,
|
|
s.external_login_verification,
|
|
s.second_factor_verification,
|
|
s.second_factor_verification_type,
|
|
s.multi_factor_verification,
|
|
s.multi_factor_verification_type,
|
|
s.sequence,
|
|
s.instance_id
|
|
FROM auth.user_sessions s
|
|
LEFT JOIN projections.users12 u ON s.user_id = u.id AND s.instance_id = u.instance_id
|
|
LEFT JOIN projections.users12_humans h ON s.user_id = h.user_id AND s.instance_id = h.instance_id
|
|
LEFT JOIN projections.login_names3 l ON s.user_id = l.user_id AND s.instance_id = l.instance_id AND l.is_primary = true
|
|
WHERE (s.user_agent_id = $1)
|
|
AND (s.user_id = $2)
|
|
AND (s.instance_id = $3)
|
|
LIMIT 1
|
|
; |