i'm trying new microsoft bot framework build skype bots. wondering if it's possible register same endpoint several bots?
i saw microsoft examples , use web.config store the:
<add key="microsoftappid" value="guid" /> <add key="microsoftapppassword" value="password" />
and using [botauthentication]
attribute resolve everything.
if same endpoing can reused several bots, how should handle authentication?
thanks
can have multiple bot framework registrations same web service (bot) , same endpoint?
if mean, answer no, @ least not bot builder sdk. 1 endpoint, can use 1 set of credentials. see no problem using same microsoft app id (and password) several bot registrations, not supported.
what use case? want have multiple channel identities (e.g. on facebook) same bot? if need this, believe can achieve implementing authentication (instead of relying on sdk this).
update
an easy workaround have multiple endpoints, 1 each bot, delegating work common class. e.g. register /bot1/api/messages/
bot1 , /bot2/api/messages
bot2, each controller using botauthentication
attribute given bot's appid , secret. can use attribute this:
[botauthentication(microsoftappid="bot1appid", microsoftapppassword="bot1apppwd")] public class bot1messagescontroller : apicontroller ...
Comments
Post a Comment