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

REST API definition of HTTPClient authentication block

    Details

    • Type: Bug
    • Status: New
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Repository, REST
    • Labels:
      None

      Description

      Hi Sonatype team,

      i found this two blocks in your REST API (swagger) json:

          "HttpClientConnectionAuthenticationAttributes": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "description": "Authentication type",
                "enum": [
                  "username",
                  "ntlm"
                ]
              },
              "username": {
                "type": "string"
              },
              "password": {
                "type": "string"
              },
              "ntlmHost": {
                "type": "string"
              },
              "ntlmDomain": {
                "type": "string"
              }
            }
          },
      

      and

      
          "HttpClientConnectionAuthenticationAttributesWithPreemptive": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "description": "Authentication type",
                "enum": [
                  "username",
                  "ntlm"
                ]
              },
              "username": {
                "type": "string"
              },
              "password": {
                "type": "string"
              },
              "ntlmHost": {
                "type": "string"
              },
              "ntlmDomain": {
                "type": "string"
              },
              "preemptive": {
                "type": "boolean",
                "example": false,
                "description": "Whether to use pre-emptive authentication. Use with caution. Defaults to false."
              }
            }
          },
      

      In both definitions, the type property is not declared as a mandatory field, but the Nexus API requires this field. This should be fixed in he swagger.json

      thanks in advance
      André

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            Anmoel Andre Moeller
            Last Updated By:
            Joe Tom Joe Tom
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title