Table of Contents

Class ClientSecretValidationResult

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

The outcome of authenticating a client at the token endpoint.

public sealed class ClientSecretValidationResult
Inheritance
ClientSecretValidationResult
Inherited Members

Properties

Client

The authenticated (or, for a public client, identified) client; null on failure.

public Client? Client { get; init; }

Property Value

Client

Confirmation

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

public string? Confirmation { get; init; }

Property Value

string

Error

The OAuth error code on failure — invalid_client from the default validator, whatever the cause; null on success.

public string? Error { get; init; }

Property Value

string

IsError

Whether the client could not be authenticated.

public bool IsError { get; init; }

Property Value

bool

Methods

Failure(string)

A failed authentication.

public static ClientSecretValidationResult Failure(string error)

Parameters

error string

The OAuth error code to answer with, usually invalid_client.

Returns

ClientSecretValidationResult

A result with IsError true and no client.

Success(Client, string?)

A successful authentication of client.

public static ClientSecretValidationResult Success(Client client, string? confirmation = null)

Parameters

client Client

The client the credential belongs to.

confirmation string

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

Returns

ClientSecretValidationResult

A result with IsError false.