Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-31184

Unable to set bearerToken when creating NPM proxy repo via REST API

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.37.3, 3.41.1
    • Fix Version/s: None
    • Component/s: NPM, REST
    • Labels:
    • Notability:
      3

      Description

      Creating an NPM proxy repo via the REST API fails when setting a bearerToken as an authentication option. The following response is returned:

      "id": "BearerTokenAuthenticationConfiguration.attributes[httpclient].authentication.bearerToken", 
      "message": "must not be blank"
      

      To reproduce, attempt to create an NPM proxy repo via the REST API (POST /v1/repositories/npm/proxy) and for the authentication payload, pass in:

      "authentication": {
       "type": "bearerToken",
       "bearerToken": "test"
       }

      Expected:

      REST API should accept bearer token auth configuration and the API example payload should be updated to indicate how a bearer token can be correctly set.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            hardeepn Hardeep Nagra
            Last Updated By:
            Hardeep Nagra Hardeep Nagra
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title