TdsAuthenticationContext Class
Provides context for an authentication request.
public sealed class TdsAuthenticationContextConstructors
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| ApplicationName | Gets the application name sent by the client, if any. |
| AuthenticationToken | Gets the authentication token, if available. This value is extracted from token-oriented login payloads when possible. |
| Database | Gets the requested initial database, if any. |
| IsIntegratedSecurity | 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. |
| Items | Gets a dictionary that keeps state across the rounds of an SSPI exchange, such as a NegotiateAuthentication instance. |
| Password | Gets the password sent by the client. |
| RemoteEndPoint | Gets the remote endpoint of the client. |
| SspiToken | Gets the SSPI token sent by the client in the current round of the SSPI exchange, or an empty value when it sent none. |
| UserName | Gets the user name sent by the client. |
ApplicationName
TdsAuthenticationContext.csAuthenticationToken
TdsAuthenticationContext.csDatabase
TdsAuthenticationContext.csIsIntegratedSecurity
TdsAuthenticationContext.csGets 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
Remarks
The server disposes the IDisposable values of the dictionary once the login completes or fails.
Password
TdsAuthenticationContext.csRemoteEndPoint
TdsAuthenticationContext.csSspiToken
TdsAuthenticationContext.csGets 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
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.