mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 12:27:59 +00:00
12 lines
354 B
MySQL
12 lines
354 B
MySQL
|
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;
|