Forum Discussion
Application with identifier was not found in the directory Bot Framework
aymiee - As mentioned here, the cause of this kind of issues might be "the Issuer attribute sent from the application to Azure AD in the SAML request doesn’t match the Identifier value that's configured for the application in Azure AD."
Steps to follow:
1. Please double check the configuration? This mostly happen when we make mistake while configuring it. Please follow this doc to understand more - https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/authentication/add-authentication?tabs=dotnet%2Cdotnet-sample#azure-ad-v2
2. Double check what AppType your Azure Bot resource is and make sure your env file is correct. Please update the AppType your env file to SingleTenant and supply your TenantId to communicate with the bot.
3. Another reason might be your bot registered into your tenant (and not the global bot framework). So, you can get the access token by changing the URL to the following (replacing with your tenant id):
https://login.microsoftonline.com/YOUR-TENANT-ID/oauth2/v2.0/token
Thanks,
Prasad Das
------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
- PGerardiDec 07, 2023Copper Contributor
- Prasad_Das-MSFTDec 13, 2023
Microsoft
PGerardi - In your code where you have implemented the function to get access token
- aymieeNov 02, 2023Brass ContributorThanks for your help. I ended using the Bot Framework Composer to deploy my Azure Bot. I am not having issues above any but I am having issues with:
OperationName - SendActivity:ChannelToBot
Channel - directline
ResultCode 404
Type - ABSBotRequests
It's a bit frustrating because it works locally via the Bot Framework Emulator but doesn't when I am calling it in the Test Web App.
I've gone through every config settings.. (signInAudience set to AzureADMyOrg for single-tenant)
Back to the drawing board...- Prasad_Das-MSFTNov 08, 2023
Microsoft
aymiee - Was there any progress made? If you've checked Bot's Permissions, Bot Endpoint etc and your bot is still not receiving messages, you might need to debug your bot's code to identify the issue.