TdsAuthenticationContext Class

Provides context for an authentication request.

public sealed class TdsAuthenticationContext

Constructors

NameDescription
TdsAuthenticationContext()

TdsAuthenticationContext()

TdsAuthenticationContext.cs
  • Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public TdsAuthenticationContext()

No documentation is available.

Properties

NameDescription
ApplicationNameGets the application name sent by the client, if any.
AuthenticationTokenGets the authentication token, if available. This value is extracted from token-oriented login payloads when possible.
DatabaseGets the requested initial database, if any.
IsIntegratedSecurityGets a value indicating whether the client asked for integrated security (Integrated Security=true), in which case it sends an SSPI token instead of a SQL login.
ItemsGets a dictionary that keeps state across the rounds of an SSPI exchange, such as a NegotiateAuthentication instance.
PasswordGets the password sent by the client.
RemoteEndPointGets the remote endpoint of the client.
SspiTokenGets the SSPI token sent by the client in the current round of the SSPI exchange, or an empty value when it sent none.
UserNameGets the user name sent by the client.

Gets the application name sent by the client, if any.

public string? ApplicationName { get; init; }

Property value

string?

AuthenticationToken

TdsAuthenticationContext.cs

Gets the authentication token, if available. This value is extracted from token-oriented login payloads when possible.

public string? AuthenticationToken { get; init; }

Property value

string?

Gets the requested initial database, if any.

public string? Database { get; init; }

Property value

string?

IsIntegratedSecurity

TdsAuthenticationContext.cs

Gets a value indicating whether the client asked for integrated security (Integrated Security=true), in which case it sends an SSPI token instead of a SQL login.

public bool IsIntegratedSecurity { get; init; }

Property value

bool

Gets a dictionary that keeps state across the rounds of an SSPI exchange, such as a NegotiateAuthentication instance.

public IDictionary<object, object?> Items { get; }

Property value

IDictionary<object, object?>

Remarks

The server disposes the IDisposable values of the dictionary once the login completes or fails.

Gets the password sent by the client.

public string? Password { get; init; }

Property value

string?

Gets the remote endpoint of the client.

public required EndPoint RemoteEndPoint { get; init; }

Property value

EndPoint

Gets the SSPI token sent by the client in the current round of the SSPI exchange, or an empty value when it sent none.

public ReadOnlyMemory<byte> SspiToken { get; }

Property value

ReadOnlyMemory<byte>

Remarks

The first round carries the token of the LOGIN7 packet. When the handler returns TdsAuthenticationResult.ContinueSspi, the server sends the handler's token to the client and calls the handler again, with the same context, once the client answers: this property then holds the client's answer.

Gets the user name sent by the client.

public string? UserName { get; init; }

Property value

string?