Ralph
Ralph•3d ago

Assistance requested with adding custom claim with Actions V2

Use-case: we are fully integrating Zitadel with all our products, replacing the build-in custom IDP of our current platform. I'm writing this post because I am struggling to add a custom claim with Actions V2 when our users are logging in to a specific solution of ours. Environment: Zitadel Cloud Version: v3.2.2 Stack: we are using Xano for our back-end and another software solution where our customers can login to. What you expected to happen: The OIDC part is already working, but I am struggling with Actions V2 to add another custom claim, and I would like to request some guidance here. Please note, I am a low-code/no-code kind of guy, and not a full-fledged developer, so please bear with me 😉 What I have done so far is creating a POST endpoint in Xano which is going to be used as the Target in Zitadel. It's quite simple; it's just looking up a specific variable for that user in our Xano database and returning it as follows:
{
"claims": {
"custom_claim": "claim_value"
}
}
{
"claims": {
"custom_claim": "claim_value"
}
}
For the endpoint I have enabled external access and copied the endpoint URL to the Zitadel target. That seemed easy enough, assuming I've done it correctly. However, when setting op the Zitadel Action I am completely lost. I have no clue if I need to run this on Request or Response, which service and method to use (I have so far tried the v1.AuthService and v2.OIDCService with all methods), and how to tell Zitadel to specifically only run this action during the OIDC authentication of this specific software solution. Very sporadically I see some requests coming in in Xano, but they only use the ListMyProjectOrgs or the ListMyZitadelPermissions methods. Kindly asking for assistance here. Please let me know if you would require some more information from my side. I'm also more than happy to hop on a call if that's easier. Thank you! Kind regards, Ralph
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?