Replies: 1 comment 5 replies
-
|
@yuriyz is there a way to apply a token script universally? I think so... |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Janssen team,
I have observed a discrepancy between the Update Token script documentation and the actual behavior in the code (and runtime tests).
The Issue
The official documentation states:
However, based on our testing, the Update Token script does not run unless the script's DN is explicitly listed in the Client's configuration. It does not appear to execute globally by default.
Looking at
ExternalScriptService.java, the logic appears to strictly filter scripts based on configuration, potentially missing a "run all if none specified" fallback for this script type.Code Reference
jans/jans-core/script/src/main/java/io/jans/service/custom/script/ExternalScriptService.java
Lines 162 to 173 in 1c947f2
Questions
Feature Request / Proposed Fix
For our use case, we require the ability to apply an Update Token script globally to all clients without manually modifying every client configuration.
If the current behavior (explicit binding only) is intended, could we request a feature in the upcoming version to support a "Global by Default" mode for Update Token scripts? This would align the code with the current documentation.
Steps to Reproduce
Beta Was this translation helpful? Give feedback.
All reactions