Table of Contents

Class SecretValidationResult

Namespace
Fdyay.IdentityServer.Validation
Assembly
Fdyay.IdentityServer.Core.dll

The outcome of checking a presented credential against the secrets stored for a client or API.

public sealed class SecretValidationResult
Inheritance
SecretValidationResult
Inherited Members

Properties

Confirmation

The confirmation (cnf) to bind into issued tokens, when the credential carries one.

public string? Confirmation { get; init; }

Property Value

string

Remarks

Null for shared secrets, which prove possession of a password and bind nothing. Reserved for sender-constrained credentials.

Failure

The credential matched no stored secret. One shared instance.

public static SecretValidationResult Failure { get; }

Property Value

SecretValidationResult

Success

Whether the credential matched a stored secret.

public bool Success { get; init; }

Property Value

bool

Methods

Succeeded(string?)

The credential matched a stored secret.

public static SecretValidationResult Succeeded(string? confirmation = null)

Parameters

confirmation string

The confirmation to bind into issued tokens, when the credential carries one.

Returns

SecretValidationResult

A result with Success true.