Interface IClientSecretValidator
- Namespace
- Fdyay.IdentityServer.Validation
- Assembly
- Fdyay.IdentityServer.Core.dll
Authenticates a client from a credential taken off the request.
public interface IClientSecretValidator
Methods
ValidateAsync(ParsedSecret, CancellationToken)
Finds the client the credential names and checks the credential against the client's secrets.
Task<ClientSecretValidationResult> ValidateAsync(ParsedSecret parsedSecret, CancellationToken cancellationToken = default)
Parameters
parsedSecretParsedSecretThe client id and credential a secret parser read off the request.
cancellationTokenCancellationTokenCancels the client lookup and the secret validation.
Returns
- Task<ClientSecretValidationResult>
The authenticated client, or the error to answer with.