Skip to content
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

Migrate to NegotiateAuthentication for GSSAPI authentication on .NET 7 #1670

Closed
filipnavara opened this issue Jul 13, 2022 · 2 comments
Closed
Labels
💡 Enhancement New feature request

Comments

@filipnavara
Copy link
Member

Is your feature request related to a problem? Please describe.

Currently SqlClient uses custom interop to call into the System.Net.Security.Native interop on .NET Core / 5 / 6. This is an internal API that is not intended for public consumption. It was previously broken on at least one occasion (dotnet/runtime@e334603). On .NET 7 a new public NegotiateAuthentication API was added (dotnet/runtime#69920, dotnet/runtime#70909) to address the scenarios. Furthermore, the NegotiateAuthentication is supported on platforms like Android where the native GSSAPI shim is not available.

Describe the solution you'd like

Remove any interop dependency on System.Net.Security.Native for .NET 7 and newer, migrate to NegotiateAuthentication API instead.

@JRahnama JRahnama added the 💡 Enhancement New feature request label Jul 14, 2022
@JRahnama
Copy link
Member

@filipnavara thanks for bringing this up. We would love to do so, but there was no proper solution to address the issue. We have some conversations with related teams. We probably wait till Netcoreapp 3.1 is out of support by the end of this year and Net7 GA is released.

@filipnavara
Copy link
Member Author

Presumably fixed by #2063.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 Enhancement New feature request
Projects
None yet
Development

No branches or pull requests

2 participants