AuthServiceJwtValidator Class
Abblix.Oidc.Server
Abblix.Oidc.Server.Features.Tokens.Validation
AuthServiceJwtValidator Class
Validates JSON Web Tokens (JWTs) issued by the authentication service, ensuring they are authentic and compliant with the expected issuer, audience, and cryptographic signatures.
public class AuthServiceJwtValidator : Abblix.Oidc.Server.Features.Tokens.Validation.IAuthServiceJwtValidator
Inheritance System.Object → AuthServiceJwtValidator
Implements IAuthServiceJwtValidator
Constructors
AuthServiceJwtValidator(IJsonWebTokenValidator, IClientInfoProvider, IIssuerProvider, IAuthServiceKeysProvider) Constructor
Validates JSON Web Tokens (JWTs) issued by the authentication service, ensuring they are authentic and compliant with the expected issuer, audience, and cryptographic signatures.
public AuthServiceJwtValidator(Abblix.Jwt.IJsonWebTokenValidator validator, Abblix.Oidc.Server.Features.ClientInformation.IClientInfoProvider clientInfoProvider, Abblix.Oidc.Server.Features.Issuer.IIssuerProvider issuerProvider, Abblix.Oidc.Server.Common.Interfaces.IAuthServiceKeysProvider serviceKeysProvider);
Parameters
validator IJsonWebTokenValidator
The service used to perform the core JWT validation.
clientInfoProvider IClientInfoProvider
The provider used to retrieve information about clients during audience validation.
issuerProvider IIssuerProvider
The provider used to resolve the expected issuer of the JWT.
serviceKeysProvider IAuthServiceKeysProvider
The provider used to retrieve the cryptographic keys for signing and decrypting tokens.
Methods
AuthServiceJwtValidator.ValidateAsync(string, ValidationOptions) Method
Asynchronously validates a JWT, checking its authenticity, issuer, audience, and cryptographic signatures.
public System.Threading.Tasks.Task<Abblix.Utils.Result<Abblix.Jwt.JsonWebToken,Abblix.Jwt.JwtValidationError>> ValidateAsync(string jwt, Abblix.Jwt.ValidationOptions options=Abblix.Jwt.ValidationOptions.Default);
Parameters
jwt System.String
The JWT string to validate.
options ValidationOptions
Validation options to apply. Defaults to Default.
Implements ValidateAsync(string, ValidationOptions)
Returns
System.Threading.Tasks.Task<Abblix.Utils.Result<JsonWebToken,JwtValidationError>>
A task representing the asynchronous validation operation, which yields a Result containing either a validated JsonWebToken or a JwtValidationError.