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

Unable to use Jenkins API Token

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None
    • Jenkins Version: 2.121.3
      Operating System: Windows 10
      Tool: Postman

      I have jenkins setup on my local system at http://localhost:8082

      I got the API Token and using it in Postman to get people as http://khalid:{APIToken}@localhost:8082/people/api/json Bur not succeeded

      Error is like below:

      <html>
      <head>
      <meta http-equiv='refresh' content='1;url=/login?from=%2Fpeople%2Fapi%2Fjson'/>
      <script>window.location.replace('/login?from=%2Fpeople%2Fapi%2Fjson');</script>
      </head>
      <body style='background-color:white; color:white;'>

      Authentication required

      <!--
      You are authenticated as: anonymous
      Groups that you are in:

      Permission you need to have (but didn't): hudson.model.Hudson.Read
      ... which is implied by: hudson.security.Permission.GenericRead
      ... which is implied by: hudson.model.Hudson.Administer
      -->

      </body>
      </html>

       

       

      only Basic Auth is working and i want to use API token

            Unassigned Unassigned
            khalidakhter91 Khalid Akhter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: