Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-72440

New API token returns 401

XMLWordPrintable

      Hello,

      2 years back I created an API token for my account and I still, now, can use it with basic auth.
      This API token is no more visible in jenkins UI.

      In July 2023 we did an upgrade of Jenkins (from 2.375.2 to 2.401.2)
      Starting from that date, all newly created API tokens are not working with basic auth. (401 unauthorized)

      We now are in 2.426.1 version of Jenkins and we still have the same issue.

      Example curl command which gives unauthorized 401 error:

      curl --silent -u <username>:<api_token> https://jenkins/job/<jobname>/lastBuild/api/json

            Unassigned Unassigned
            akileshds Akilesh DS
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: