-
Notifications
You must be signed in to change notification settings - Fork 301
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
Dependency conflicts with Microsoft.Bot .Builder package #352
Comments
Thanks for logging this. Here's to hoping Microsoft update it soon! I'm using the micro service option right now. It works, but risks malicious usage if publicly accessible and not secured properly. |
+1, in our case conflict is with Identity Server. Upgrading IS to support JWT 5.x is not available, since we have to go to .NET Core. |
@dprothero Is this issue still an ongoing concern? |
@alexsorokoletov I don't understand why JWT 5.x support with .NET Core would be a problem. Can you elaborate? It appears the JWT 5.x library is .NET Standard 1.4 compatible (one of the reasons we selected it). |
@jmctwilio Yes, it is still an issue. Some popular Microsoft packages don't work with v5.x of the JWT library, yet. Uncertain as to why they have made that choice at this point. The workarounds in the initial issue report remain. If Twilio were to try to address the issue, our options would be:
|
Bot Builder 3.14/3.15/3.16 have been updated, System.IdentityModel.Tokens.Jwt (>= 5.1.4), so based on this conversation, it's not an issue any longer. |
still having the same issue |
hi, did you find solution for this issue ? thanks |
Resolving as the bot builder has been updated. Please open a new issue for any other questions. |
Version: 5.3.0
Customer reported issue on Twitter:
https://twitter.com/dprothero/status/859788762116751360
Microsoft.Bot .Builder package requires System.IdentityModel.Tokens.Jwt <5.0.0. Twilio requires >=5.1.2. This means they cannot be used in the same project together.
Not sure on the solve here. Would seem to make the most sense for Microsoft to update their Bot framework. Mainly just wanted to add some tracking and visibility to the issue.
Workarounds for now:
Could use the older C# Twilio v4.7.2 package. No conflicts there, but means you're using a library that will be unsupported at the end of May 2017.
Make direct HTTP REST calls to Twilio (don't use helper library) using System.Net.HttpClient. Not a great experience, but would work.
Create a microservice (Web API or ASP.NET Core) that wraps up your Twilio functionality. This project could utilize the latest Twilio package. Then, in your project that uses the Bot framework, you could call your microservice over HTTP.
None of the workarounds are ideal, so hopefully, this situation will have a good resolution soon (hint, hint, Microsoft).
The text was updated successfully, but these errors were encountered: