bawskyB
ZITADELβ€’7mo ago
bawsky

Access the authorize request in the Complement Token flow (Actions V1)

Hello Zitadel crew πŸ‘‹
We have a need to pass arbitrary parameters in the /authorize request and then run some API request inside an action using those parameters, to finally complement the token claims. E.g.:

1- User attempts to login and the frontend passes the arbitrary company_id=42 query parameter in the /authorize request
2- On an action inside Zitadel, we read that arbitrary parameter and use that to make an internal request to our backend API (to e.g.: check if user really has access to company_id=42
3- If response of that internal request is successful, the Zitadel action complements the access token with a new claim (e.g.: "company_id": 42)

Looking through the documentation I didn't find a way of doing that using Action V1 - is it possible?

Note: we're on Zitadel 2.67.3 (default version from Helm charts) and using only Actions V1 for now
Was this page helpful?