IClientJwtValidator Interface
Abblix.Oidc.Server
Abblix.Oidc.Server.Features.Tokens.Validation
IClientJwtValidator Interface
Defines a contract for validating JSON Web Tokens (JWTs) issued by clients, specifically for client authentication.
public interface IClientJwtValidator
Derived
↳ ClientJwtValidator
Remarks
This interface ensures that JWTs used in client authentication are properly validated according to the specified options. It also retrieves client information associated with the validated JWT, which is essential for authorizing client requests. Implementations of this interface should handle JWT validation, including verifying the token's signature, issuer, audience and other claims.
Methods
IClientJwtValidator.ValidateAsync(string, ValidationOptions) Method
Asynchronously validates a JWT and retrieves associated client information if the validation is successful.
System.Threading.Tasks.Task<Abblix.Utils.Result<Abblix.Oidc.Server.Features.Tokens.Validation.ValidJsonWebToken,Abblix.Jwt.JwtValidationError>> ValidateAsync(string jwt, Abblix.Jwt.ValidationOptions options=Abblix.Jwt.ValidationOptions.Default);
Parameters
jwt System.String
The JWT to validate.
options ValidationOptions
Optional validation options that define the specific checks and constraints to apply during validation. Default is Default.
Returns
System.Threading.Tasks.Task<Abblix.Utils.Result<ValidJsonWebToken,JwtValidationError>>
A task that returns a Result containing either a ValidJsonWebToken on success,
or a JwtValidationError on failure.