Hi,
I would like to ask what are the possibilities of the idToken update during the authentication process. We have two use cases we would like to address.
Is there a way to modify it from the person authentication script, or in some other way?
Thank you in advance for the response on that matter.
Hi, Lukasz.
In 4.3 we now have a custom script of "update token" type. It should allow to manipulate any claims of JWT token, including it_token, though I personally haven't tried to update acr
or amr
claims with it.
@Yuriy.Zabrovarnyy , should this be possible with this kind of script?
This if for OpenBanking platform, but seems like the code is the same, or similar enough, and it shows how you can change values of some claims: https://gluu.org/docs/openbanking/1.0.0/scripts/update-token/
Yes, it's true with UpdateTokenType
you have full access (CRUD) to ID Token claims.
Thanks, Yuriy.
Lukasz, could you give it a try, and let us know how it goes?
This approach works fine. This is what we were looking for.
Thank you.
You're welcome, glad it helped. Closing the ticket then.