Token Exchange - complement token with email of impersonator
Hello Zitadel crew 👋
I'm working on adding impersonation to our application leveraging Zitadel, and one thing we've been doing is complementing the access token with the user email, e.g.:
While playing with impersonation via token exchange however, I've noticed that the original user is under the
act
claim - is it possible to get their email using a V1 action (without hardcoding a Zitadel API key in the action)? Ideally I'd like something like:
From my own testing, it seems that when the Complement Token
flow is triggered during a token exchange, the only claim available on ctx.v1.claims
is sub
and nothing else 😕
thanks in advance 😄0 Replies