-
I currently evaluate (play with) Janssen for a project to see if it is an option. But I struggle to get just a simple script running. I can create, install, and enable it (it shows up in the TUI and is marked as enabled). I did not get any compile errors or similar. However, nothing happens. I tried an UpdateToken script (in Java), but when a client requests a new token, the Log I placed there is not printed. I even made one throwing an exception to ensure I would see it running. Do I miss a crucial step? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Maybe you've run into bug which should be fixed today/tomorrow. #6561 |
Beta Was this translation helpful? Give feedback.
-
It works now, but the problem was elsewhere. I used the wrong format to associate a script with a client. I eventually figured it out by looking at different example clients that had a script associated. The documentation about this is sadly currently not there (unless I looked in the wrong place) |
Beta Was this translation helpful? Give feedback.
-
Can you elaborate? We'd love to add this to the docs if it's missing! Or maybe you can make a PR for the docs :-) |
Beta Was this translation helpful? Give feedback.
There is the page: https://docs.jans.io/v1.0.19/admin/auth-server/client-management/client-scripts/, which I assume would describe how to associate scripts with clients but is currently marked as "This content is in progress". My problem was that when I configured the client (under Auth Server/Clients in the TUI) I entered for the "Client Scripts" configuration first just the name, then just the inum until I figured out that it expected a dn alla: "inum=...,ou=scripts,o=jans". If we decide to use Janssen (there are still other products we are evaluating to see which fits our usecase the best) I will consider writing a PR.