AADSTS70001: Application with identifier 'undefined' was not found in the directory
See original GitHub issuePlease 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
cd react-aad-msal
- Create a
.env.local
file, with the following variables:REACT_APP_AAD_APP_CLIENT_ID=e663473gert5.....
- Run the sample application
npm start
- Click on the pop-up button when it appears in the browser at localhost:3000
- 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:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
andsample/SampleAppRedirectOnLaunch.js
Glad you got it working!
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!
Where … is the rest of my client ID & authority