Skip to content

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

@filipnavara

Description

@filipnavara

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Enhancement 💡Issues that are feature requests for the drivers we maintain.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions