ADT Explorer - Authentication Failed

Harish 26 Reputation points
2020-11-16T09:45:33.173+00:00

With the new azure digital twin explorer, when I open the explorer, I am receiving this error. 40036-image.png I tried to login with my id (az login) after providing the necessary access "Azure Digital Twins Data Owner". Also I tried using managed identity still I am receiving the error. Error which I get in the console shown below.
39987-image.png

Azure Digital Twins
Azure Digital Twins
An Azure platform that is used to create digital representations of real-world things, places, business processes, and people.
231 questions
{count} votes

2 answers

Sort by: Most helpful
  1. QuantumCache 20,271 Reputation points
    2020-11-16T17:25:38.7+00:00

    Hello @Harish ,

    We verified the ADT Explorer tool and were able to repro the issue when the user is not properly authenticated as per the instructions.

    Below you can find the repro and resolution steps.

    Reference link

    As of 10/30, we have changed authentication in adt-explorer. Adt-explorer will now pick up your login from az login, VS/VS Code, or environment variables. You only need to provide the service URL to connect. The simplest way to login is to run az login at some point in a command prompt before running adt-explorer (does not have to be the same command prompt). See below for more information.

    Repro of the issue: When we do not run the 'az login' command the authentication fails.

    40172-image.png

    Resolution:

    • Please close all browser windows.
    • Please run the az login command from a separate command-line-->which will open a new browser window and allow the registered user to log in-->Finally close the browser window. Please note that the user should have the right permissions.
    • Now run the command-line statement 'npm start' from the ADT Explorer application folder, which will open the browser loading http://localhost:3000/
    • Continue with uploading models and importing graphs as per the instructions. 40162-image.png

    Please make sure the user has the right access permissions.

    40136-image.png

    Please let us know if you need further help with this matter.

    Thank you,

    Satish.


  2. Kai Vidar Falao 1 Reputation point
    2021-03-05T16:22:41.287+00:00

    Hello. I've just (yesterday) downloaded the latest ADT Explorer (v.0.1.0) and experience the exact same error message as described in the first post. 74873-authentication-error-in-development-build.png

    I do this exercise while following the Microsoft Learning path for ADT: https://learn.microsoft.com/en-us/learn/modules/develop-with-azure-digital-twins/build-azure-digital-twins-graph-for-chocolate-factory/7-exercise-build-digital-twin-graph

    I have verified my az login to work, by using the az dt list CLI command. Most grateful for any help to sort this out.

    Thanks,

    KaiV


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.