c# - BotFramework on Skype For Business does not authenticate -


we developing bot using bot framework (microsoft bot builder 3.9 on vs2017), calling luis , qna maker apis , want deploy on skype business online. using bot framework emulator (no ngrok used), works on development environment (localhost).

we have published api on local server (intranet) , exposed through azure gateway, test api endpoint works (/api/test) api related bot framework (/api/messages) not.

trying connect fiddler below information returns botauthenticator failed authenticate incoming request!

request sent: post: intranet:port/api/messages headers: accept: application/json content-type: application/json content-length: 532 host: intranet:port body: { "type": "message", "text": "hi", "from": { "id": "default-user", "name": "user" }, "locale": "en-us", "textformat": "plain", "timestamp": "", "channeldata": { "clientactivityid": "1503305115246.7002765593111311.0" }, "entities": [{ "type": "clientcapabilities", "requiresbotstate": true, "supportstts": true, "supportslistening": true }], "id": "ei7ck29k3jj2", "channelid": "emulator", "localtimestamp": "2017-08-21t11:45:19+03:00", "recipient": { "id": "4fn4lffkkb5heeam3", "name": "bot" }, "conversation": { "id": "5l5dn2diegck" }, "serviceurl": "http://localhost:port" } received:

http/1.1 401 unauthorized cache-control: no-cache pragma: no-cache content-length: 57 content-type: text/plain; charset=utf-8 expires: -1 server: microsoft-iis/8.5 www-authenticate: bearer realm="intranet" x-aspnet-version: 4.0.30319 www-authenticate: negotiate www-authenticate: ntlm www-authenticate: basic realm="intranet" x-powered-by: asp.net date: mon, 21 aug 2017 14:22:34 gmt botauthenticator failed authenticate incoming request!

then tried add authorization header token generated https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token same problem persists. bot added skype business when sending message, reply on skype business online be: error happened in skype business service when reaching bot service.

we have used microsft appid , password settings of botframework in azure , included them in web.config

any thoughts?


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -