Table of Contents

Interface IApiSecretValidator

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

Authenticates an API resource from a credential taken off the request.

public interface IApiSecretValidator

Methods

ValidateAsync(ParsedSecret, CancellationToken)

Finds the API resource the credential names and checks the credential against the API's secrets.

Task<ApiSecretValidationResult> ValidateAsync(ParsedSecret parsedSecret, CancellationToken cancellationToken = default)

Parameters

parsedSecret ParsedSecret

The API name and credential a secret parser read off the request.

cancellationToken CancellationToken

Cancels the resource lookup and the secret validation.

Returns

Task<ApiSecretValidationResult>

The authenticated API resource, or a failure.