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
SucceededboolTrue when validation succeeded.
PrincipalAuthenticatedPrincipalThe authenticated principal, when
Succeededis true.FailureReasonstringOptional failure reason.
Properties
FailureReason
Optional failure reason.
public string? FailureReason { get; init; }
Property Value
Principal
The authenticated principal, when Succeeded is true.
public AuthenticatedPrincipal? Principal { get; init; }
Property Value
Succeeded
True when validation succeeded.
public bool Succeeded { get; init; }