Is there a way to set the OTK Token Lifetime (oauth2_auth_code_lifetime_sec) for each OTK client?
Release : 4.4
Component : OTK
The "oauth2_auth_code_lifetime_sec" setting is configured in the "OTK Token Lifetime Configuration" policy. This is reading the value from the cluster-wide property "otk.oauth2.auth_code.lifetime_s" and it is set to 300 seconds by default. There is no out-of-the-box option available to set this value for each OTK client.
However, you can use the hash policy "#OTK Token Lifetime Configuration" to set the required value for the token lifetime. You need to read the client name and then set the required value.
Please note, this is a custom configuration and you are responsible for any changes in the hash policy.