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

Retrieve current user's user token via REST

    XMLWordPrintable

    Details

    • Notability:
      3

      Description

      in NXRM 2, there was a REST API ( /service/siesta/usertoken/current ) to retrieve your own user token value without using the UI.

      This is useful in provisioning scenarios.

      How to retrieve a user token from NXRM 2 using REST

      IQ Server has a REST API to generate and retrieve your own user token in one REST API call: https://help.sonatype.com/iqserver/automating/rest-apis/user-token-rest-api---v2#UserTokenRESTAPI-v2-CreatingaUserToken

      NXRM 3 however does not have an officially supported way to achieve the same - get my own user token value via REST API.

      Expected

      NXRM 3 should implement a productized end user targeted and supported REST API to retrieve/generate one's own user token.

      Unsupported Internal Implementation

      Attention Watchers: There remains no supported official REST API in NXRM 3 for this feature.

      However for the adventurous we have documented an unofficial subject to change at any time method to achieve this ask in the following KB article:

      https://support.sonatype.com/hc/en-us/articles/213465878

      Use at your own risk with the assumption that on any upgrade its usage could break.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              plynch Peter Lynch
              Last Updated By:
              Hajime Osako Hajime Osako
              Votes:
              14 Vote for this issue
              Watchers:
              18 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title