Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-2605

deviceauth: preauthorization doesn't return device ID

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Labels:
    • Environment:
      2.0.0 Docker demo (Linux x86_64)
    • Days in progress:
      0

      Description

      The device preauthorization API call (POST /devauth/devices, see https://docs.mender.io/2.0/apis/management-apis/device-authentication#submit-a-preauthorized-device) does not return the created device ID. This makes it difficult to interact with this device until it is accepted. To find out the device ID e.g. in order to remove the device again, you'd have to list all devices and search the list based on the identity data or public key - GET /devauth/devices only allows filtering by state, and GET /inventory/devices allows filtering only by the attributes that are only present for accepted devices.

       

      Additionally, the documentation states that if trying to authorize an existing device, its ID should be returned, but an error is returned instead.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                oleorhagen Ole Petter Orhagen
                Reporter:
                guelfey Georg Reinke
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel