question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AADSTS70001: Application with identifier 'undefined' was not found in the directory

See original GitHub issue

Please provide us with the following information:

Win 10 with Visual Studio Code

This issue is for a: (mark with an x)

- [X ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  1. cd react-aad-msal
  2. Create a .env.local file, with the following variables:
    REACT_APP_AAD_APP_CLIENT_ID=e663473gert5.....
    
  3. Run the sample application npm start
  4. Click on the pop-up button when it appears in the browser at localhost:3000
  5. Enter credentials

Any log messages given by the failure

AADSTS70001: Application with identifier ‘undefined’ was not found in the directory

Expected/desired behavior

Pop-up disappears and allows access to website.

OS and Version?

Windows 10, VS Code

Mention any other details that might be useful

I’ve created an Azure AD registration (done this many times before and worked), so I don’ think I’m doing something wrong there.

The error states that it is using my correct directory (beginning with 72f…), so it appears as though it can read my env.local file. I just am not sure of what it means with “identifier ‘undefined’”


Thanks! We’ll be in touch soon.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
omusavicommented, Jul 5, 2018

Ah yes, so the entire property is optional when creating the AzureAD component, but in the sample, we still set it to whatever is in the .env.local file. So what this means is it was being sent to blank and then passing that onto MSAL and throwing the error.

If you do not wish to set it in the .env.local file, you would need to remove the following line from the file sample/SampleAppButtonLaunch.js and sample/SampleAppRedirectOnLaunch.js

authority: process.env.REACT_APP_AUTHORITY,

Glad you got it working!

0reactions
DaveVoylescommented, Jul 5, 2018

The code snippet says it was optional, so I left it out.

Once I added it with these credentials, I got it to work. Thank you!

REACT_APP_AUTHORITY="https://login.microsoftonline.com/72f988bf-86f1-......."

Where … is the rest of my client ID & authority

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error AADSTS70001 - Application with Identifier was not found ...
Describes a problem in which you receive the error AADSTS70001 when you sign in to SAML sign-on configured app with Azure Active Directory....
Read more >
AADSTS700016: Application with identifier 'some_id' was not ...
I ran in to this problem because I was using the ID of in the Client secret section instead of using the Application...
Read more >
Application With Identifier Not Found: Azure Error
AADSTS700016: Application with identifier '<URN>' was not found in the directory '<TENANT ID>'. This can happen if the application has not been ...
Read more >
Error: AADSTS700016: Application with identifier '*Your ...
AADSTS700016: Application with identifier '*Your Application ID*' was not found in the directory '*Your Directory*'. This can happen if the ...
Read more >
How to set up Azure to support CaseWare Cloud Single Sign-On
AADSTS70001 : Application with identifier ... was not found in the directory ... Cloud supports single sign-on (SSO) with Azure Active Directory (Azure...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found