-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BotAuthentication problem #867
Comments
|
@vovanb In regards to bullet 2 - I had a similar problem when I developed skype calling bot. I had to implement 1 service that will be used for several bots, all of them executing the same logic but producing different experience. For this purpose, in each bot definition, I appended query string parameter to the calling URL (in your case this would be messaging URL). However, the SDK v3 did not support URL query string parameters, so I created pull request #764 to implement the support. So in your case you might consider identical aproach to add something like |
@willportnoy and @mghimp thanks for the reply. But how I can pass MicrosoftAppId and MicrosoftAppPassword in runtime, can you provide example? As soon as I know there is no way to assign attribute metadata in runtime - it is done on compilation. Also if I will have different endpoint for bot then Authentication MicrosoftAppId should be different for each bot -since it is uneq cross the framework (I got error when tried to use same MicrosoftAppId for different bot) |
@vovanb you may want to search for how people create a dynamic ActionFilterAttribute - for example, you want want to create your own attribute that wraps and delegates to the framework's BotAuthentication attribute and provides the values dynamically but delegates to the inner BotAuthentication.OnActionExecutingAsync method. |
Ok thank you, can you provide an example? Sincerely,
|
I don't have any example code handy, but you may want to look at |
I'm going to close this issue, but feel free to open a new issue for further discussions. |
Method OnActionExecutingAsync removed in 3.5 version. We need urgent suggestion how to use it? |
Hello, I have two question regarding BotAuthentication:
1.I created OWIN host selfservice project(windows service) which handle BOT controller located in separated C# class library.How I can pass programmatically MicrosoftAppId and MicrosoftAppPassword to dll, because by default it is looking in host exe app config and not in folder where dll placed.
2.We want to develop BOT service which will serve multiple BOTS, different by incoming laguage for example in same service - how we can load Microsoft.Bot.Connector with different credential ?
Thanks a lot.
The text was updated successfully, but these errors were encountered: