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
parsedSecretParsedSecretThe API name and credential a secret parser read off the request.
cancellationTokenCancellationTokenCancels the resource lookup and the secret validation.
Returns
- Task<ApiSecretValidationResult>
The authenticated API resource, or a failure.