auth0/auth0.net

Support for Auth0Client in .Net 5.0 and newer

JoeSchulte opened this issue · 1 comments

Does Auth0 support .Net 5.0 and newer? I am seeing that it is based on WebView not WebView2 so it is dependent on WinRT which is not supported. Am I missing something or are you planning support for newer non-framework .Net versions?

This is the error I am seeing:
Microsoft.Toolkit.Forms.UI.Controls.WebView.dll cannot be referenced because it uses built-in support for WinRT, which is no longer supported in .NET 5 and higher. An updated version of the component supporting .NET 5 is needed. For more information, see https://aka.ms/netsdk1149

I would like to have support for Auth0Client() in both WinForms and WPF applications.

Thanks for reaching out.

This is the wrong repository tho, i assume you want: https://github.com/auth0/auth0-oidc-client-net

That said, you can make it work with dotnet 5 and above, here's how: https://community.auth0.com/t/howto-use-the-auth0-oidcclient-winforms-sdk-with-edge-chromium-webview2/57746

We have no build in support for webview 2 at the moment, but if you provide the implementation above yourself, it should work.