SuperJMN
SuperJMN

Reputation: 14002

Getting "BotAuthenticator failed to authenticate incoming request!" in sample application

I've cloned the official BotBuilder repository and I'm running the sample named AadV2Bot (link)

It's the "Bot example that uses an OAuthCard to log a user into an AAD v2 application and uses the Microsoft Graph Api"

Well, I haven't modified anything but web.config.

However, I cannot get it working. Inside the Bot Emulator, all I'm getting is this after I send a message ("Hola")

enter image description here

I think I've put the correct my information in web.config:

enter image description here

What's wrong?

Upvotes: 0

Views: 846

Answers (1)

SMshrimant
SMshrimant

Reputation: 719

Could you please cross check your filename.bot file with below code.

{
    "name": "final",
    "description": "",
    "secretKey": "",
    "services": [
        {
            "appId": "",
            "id": "xxxxx-xx-xx-xxx-xxxxx",
            "type": "endpoint",
            "appPassword": "",
            "endpoint": "http://localhost:3978/api/messages",
            "name": "http://localhost:3978/api/messages"
        }
    ]
}

(make sure you mention http for endpoint and name)

Upvotes: 1

Related Questions