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
Confirmation
The confirmation to bind into issued tokens, when the credential carried one.
public string? Confirmation { get; init; }
Property Value
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
IsError
Whether the client could not be authenticated.
public bool IsError { get; init; }
Property Value
Methods
Failure(string)
A failed authentication.
public static ClientSecretValidationResult Failure(string error)
Parameters
errorstringThe 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
clientClientThe client the credential belongs to.
confirmationstringThe confirmation to bind into issued tokens, when the credential carried one.
Returns
- ClientSecretValidationResult
A result with IsError false.