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

Retrieve NuGet API Key via REST

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.26.1
    • Fix Version/s: None
    • Component/s: NuGet, REST
    • Labels:
      None

      Description

      Currently the NuGet API Key can only be retrieved manually via the User menu.

      We have automated pipelines that provisioning user's/team's tools, and having to manually retrieve the NuGet API Key throws a wrench into an otherwise fully-automated process.

      Example

      Similar to [Nexus IQ's User Token REST API|https://help.sonatype.com/iqserver/automating/rest-apis/user-token-rest-api---v2] (albeit keeping the conventions of NXRM's API), there could be an endpoint:

      POST /v1/security/nuget-apikey/currentUser
      {
        "apiKey":"0569d499-ffc2-452d-bce1-8ebfa98f5c23"
      }
      

       The design of this would likely be influenced by whatever comes of NEXUS-12653.

       


      This is similar to NEXUS-12653 and NEXUS-21354.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              richardgomez Richard Gomez
              Last Updated By:
              Joe Tom Joe Tom
              Votes:
              7 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title