Update to WebView2
Changes
We cannot use Auth0 WPF library in dotnet 6 project because of a deprecated dependency. We need to remove package Microsoft.Toolkit.Wpf.UI.Controls.WebView and replace it by Microsoft.Web.WebView2.
Main classes remain unchanged.
Bump to version 4.0 because changing the main dependency.
References
Deprecated notice https://docs.microsoft.com/en-us/dotnet/api/microsoft.toolkit.wpf.ui.controls.webview?view=win-comm-toolkit-dotnet-6.1
Testing
Run the WPF and WinForms applications in "Interactive Test Apps" folder.
Checklist
- [x] I have read the Auth0 general contribution guidelines
- [x] I have read the Auth0 Code of Conduct
- [x] All existing and new tests complete without errors
- [x] All code guidelines in the CONTRIBUTING documentation have been run/followed
Thanks for opening this PR, we always appreciate people willing to improve the SDK.
The support for .NET 5 and 6 has been discussed a few times, and you should be able to use this SDK as-is in a .NET 6 project using WebView 2, here are the steps I took to do so: https://github.com/auth0/auth0-oidc-client-net/issues/209#issuecomment-1039203957.
As said in that comment, I understand this isn't ideal. But because it's not blocking, I think it would be better to consider adding support for WebView2 in a non-breaking way.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇♂️
Closing this, as this can not be merged in it's current state and has been stale for a while.