Closed splumber closed 4 years ago
@splumber, I tried the sample 24.bot-authentication-msgraph and it works just fine for me.
You need to add the Microsoft bot app ID and password along with the connectionName in the appsettings.json, not the client ID and password. The client ID and secret which you generate in the 'Create an AAD app' step is used to register your Azure AD application with your bot. Also, did you test your connection to see if it was working?
Thank you for replying, I tested the Connection and it worked Yes, I entered the MicrosoftAppId, MicrosoftAppPassword, and ConnectionName to both appsettings.json and in the BotFramework Emulator.
I'll retry all of the steps and will follow up with results
Resolved, I was not entering the Microsoft App ID from the Bot Channels Registration Resource
Github issues for Bot Authentication MSGraph
Sample information
Describe the bug
Objective is to deploy a bot able to send an OAuth Card. I followed the Add authentication to a bot tutorial along with the directions in the Readme. I get an ""Operation returned an invalid status code 'Unauthorized'"" exception in AdapterWithErrorHandler.OnTurnError when testing with the Bot Framework Emulator (connected to bot with the AppId and password - same in appsettings.json)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
An OAuth Card should be displayed.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
The purpose of this is to deploy a Bot sending an OAuth Card to test with the Windows Voice Assistant Client. I want to modify the client to render an OAuth Card
[bug]