Class TestAuthenticationEvent

Namespace
XBullet.EasyTesting.Authentication
Assembly
XBullet.EasyTesting.dll

Contains safe metadata captured from one real-handler authentication event.

public sealed record TestAuthenticationEvent : IEquatable<TestAuthenticationEvent>
Inheritance
TestAuthenticationEvent
Implements
Inherited Members

Constructors

TestAuthenticationEvent(TestAuthenticationEventKind, string, string, string, DateTimeOffset, string?, string?)

Contains safe metadata captured from one real-handler authentication event.

public TestAuthenticationEvent(TestAuthenticationEventKind Kind, string AuthenticationScheme, string Method, string Path, DateTimeOffset Timestamp, string? FailureType = null, string? FailureMessage = null)

Parameters

Kind TestAuthenticationEventKind

The authentication operation that produced the event.

AuthenticationScheme string

The case-sensitive scheme name of the real authentication handler that produced the event.

Method string

The HTTP request method associated with the event.

Path string

The request path without the query string.

Timestamp DateTimeOffset

The absolute time at which the event was recorded. Recorder-created events use UTC.

FailureType string

The validation exception's fully qualified type name, or null when the event has no captured failure. The default is null.

FailureMessage string

The redacted validation-failure message, or null when the event has no captured failure. The default is null.

Properties

AuthenticationScheme

The case-sensitive scheme name of the real authentication handler that produced the event.

public string AuthenticationScheme { get; init; }

Property Value

string

FailureMessage

The redacted validation-failure message, or null when the event has no captured failure. The default is null.

public string? FailureMessage { get; init; }

Property Value

string

FailureType

The validation exception's fully qualified type name, or null when the event has no captured failure. The default is null.

public string? FailureType { get; init; }

Property Value

string

Kind

The authentication operation that produced the event.

public TestAuthenticationEventKind Kind { get; init; }

Property Value

TestAuthenticationEventKind

Method

The HTTP request method associated with the event.

public string Method { get; init; }

Property Value

string

Path

The request path without the query string.

public string Path { get; init; }

Property Value

string

Timestamp

The absolute time at which the event was recorded. Recorder-created events use UTC.

public DateTimeOffset Timestamp { get; init; }

Property Value

DateTimeOffset