Details
-
Fix
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
1.13.6
-
None
Description
Current Situation
When the monitor
<monitor name="process0" ordering="0"> <script language="java" java_class="com.sos.jitl.restclient.CreateApiAccessToken"/> </monitor>
is used in a job the access token is provided in the spooler.variable <user>_X-Access-Tokken and can be accessed with spooler.variables.value("myuser_X-Access-Token") where myuser is the user name from the login.
This works when using a credential store.
When using the private.conf file the myuser always is empty and the access is spooler.variables.value("_X-Access-Token")
Desired Behavior
When the monitor
<monitor name="process0" ordering="0"> <script language="java" java_class="com.sos.jitl.restclient.CreateApiAccessToken"/> </monitor>
the access token should be available in the spooler variable <user>_X-Access-Token when using a credential store and when using the private.conf file.