Is it possible to disable the authorization required when calling the Windows Device Portal REST API for the Hololens?

WL.TSAI 85 Reputation points
2024-01-10T03:12:04.3766667+00:00

Is it possible to disable the authorization required when calling the Windows Device Portal REST API for the Hololens?

Regarding the curl command I’m using, is there a way to execute it without the authorization?

curl --location 'http://<hololens-ip>/api/holographic/mrc/files' 
--header 'Authorization: Basic <my username and password>' 
HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
396 questions
{count} vote

Accepted answer
  1. Ying Li - MSFT 1,200 Reputation points Microsoft Vendor
    2024-01-12T03:10:27.4033333+00:00

    Hi @WL.TSAI ,

    you said you received a 401 unauthorized error. So, I ran some tests and found that two requirements must be met to use the curl command to access Device Portal:

    • The ‘Required’ in SSL Connection must be disabled.
    • The username and password of the Device Portal must be provided.

    After meeting these requirements, you can use the following curl command:

    curl -u username:password http://<hololens-ip>/api/holographic/mrc/files


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.