Search code examples
c#.net-corebotframework

Bot Framework v4 Bot emulator authentication bad request


I'm using Bot Framework v4 and Bot Emulator to test authentication. My app is based on the bot authentication sample app on git hub. When I click on Sign In card received on the bot emulator, I receive Bad Request as a response on the sign-in window opened by the emulator. In the inspector pane, I see the sign-in link is given as https://token.botframework.com/api/oauth/signin?signin={some value}. This link redirects to https://token.botframework.com/.auth/web/login which results in Bad Request.

Any ideas whats going wrong?

[Update] I read the post for Testing authentication to your bot using the Bot Framework Emulator, but didn't help.


Solution

  • It was a mistake in my configuration. I was giving a wrong ConnectionName. The connection name should be name of the connection created in OAuth Connection Settings section in settings of your Bots Channel Registration. See below screen shot

    enter image description here