Table of Contents

Class AuthenticationResult

Namespace
Excalibur.A3.Authentication
Assembly
Excalibur.A3.Abstractions.dll

Represents the outcome of token validation.

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

Constructors

AuthenticationResult(bool, AuthenticatedPrincipal?, string?)

Represents the outcome of token validation.

public AuthenticationResult(bool Succeeded, AuthenticatedPrincipal? Principal, string? FailureReason = null)

Parameters

Succeeded bool

True when validation succeeded.

Principal AuthenticatedPrincipal

The authenticated principal, when Succeeded is true.

FailureReason string

Optional failure reason.

Properties

FailureReason

Optional failure reason.

public string? FailureReason { get; init; }

Property Value

string

Principal

The authenticated principal, when Succeeded is true.

public AuthenticatedPrincipal? Principal { get; init; }

Property Value

AuthenticatedPrincipal

Succeeded

True when validation succeeded.

public bool Succeeded { get; init; }

Property Value

bool