Uploaded image for project: 'JITL - JobScheduler Integrated Template Library'
  1. JITL - JobScheduler Integrated Template Library
  2. JITL-628

Using CreateApiAccessToken post processor should create a new access_token when the user in private.conf is changed

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.13.6
    • 1.13.7
    • 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.

      Attachments

        Issue Links

          Activity

            People

              ur Uwe Risse
              ur Uwe Risse
              Aditi Dubey Aditi Dubey (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: