zitadel/internal/query/authn_key_user.sql

12 lines
354 B
MySQL
Raw Normal View History

select u.id as user_id, u.resource_owner, u.username, m.access_token_type, k.public_key
from projections.authn_keys2 k
join projections.users13 u
on k.instance_id = u.instance_id
and k.identifier = u.id
join projections.users13_machines m
on u.instance_id = m.instance_id
and u.id = m.user_id
where k.instance_id = $1
and k.id = $2
and u.id = $3;