<PackageReference Include="Microsoft.Data.SqlClient" Version="7.1.1" />

Microsoft.Data.SqlClient.SspiAuthenticationParameters

public sealed class SspiAuthenticationParameters
Provides parameters used during SSPI authentication.
public string DatabaseName { get; }

Gets the database name if available.

public string Password { get; }

Gets the password if available.

public string Resource { get; }

Gets the resource (often the server service principal name).

public string ServerName { get; }

Gets the server name.

public string UserId { get; }

Gets the user id if available.

public SspiAuthenticationParameters(string serverName, string resource, string userId = null, string databaseName = null, string password = null)

Creates an instance of the SspiAuthenticationParameters.