IntrospectionRequestValidator Class
Abblix.Oidc.Server
Abblix.Oidc.Server.Endpoints.Introspection
IntrospectionRequestValidator Class
Validates the introspection request properties and authenticates a client that initiated the request.
public class IntrospectionRequestValidator : Abblix.Oidc.Server.Endpoints.Introspection.Interfaces.IIntrospectionRequestValidator
Inheritance System.Object → IntrospectionRequestValidator
Implements IIntrospectionRequestValidator
Remarks
This class performs validation of introspection requests and client authentication. It ensures that the request is authorized and the provided token is valid for the client. The validation process includes checking the authenticity of the client and the integrity of the token. It leverages a client request authenticator for client authentication and a JWT validator for token validation.
Constructors
IntrospectionRequestValidator(ILogger<IntrospectionRequestValidator>, IClientAuthenticator, IAuthServiceJwtValidator) Constructor
Validates the introspection request properties and authenticates a client that initiated the request.
public IntrospectionRequestValidator(Microsoft.Extensions.Logging.ILogger<Abblix.Oidc.Server.Endpoints.Introspection.IntrospectionRequestValidator> logger, Abblix.Oidc.Server.Features.ClientAuthentication.IClientAuthenticator clientAuthenticator, Abblix.Oidc.Server.Features.Tokens.Validation.IAuthServiceJwtValidator jwtValidator);
Parameters
logger Microsoft.Extensions.Logging.ILogger<IntrospectionRequestValidator>
The logger for logging activities within the validator.
clientAuthenticator IClientAuthenticator
The client request authenticator to authenticate the client.
jwtValidator IAuthServiceJwtValidator
The JWT validator to validate the token.
Remarks
This class performs validation of introspection requests and client authentication. It ensures that the request is authorized and the provided token is valid for the client. The validation process includes checking the authenticity of the client and the integrity of the token. It leverages a client request authenticator for client authentication and a JWT validator for token validation.
Methods
IntrospectionRequestValidator.ValidateAsync(IntrospectionRequest, ClientRequest) Method
Validates the introspection request properties and authenticates a client that initiated the request.
public System.Threading.Tasks.Task<Abblix.Utils.Result<Abblix.Oidc.Server.Endpoints.Introspection.Interfaces.ValidIntrospectionRequest,Abblix.Oidc.Server.Common.OidcError>> ValidateAsync(Abblix.Oidc.Server.Model.IntrospectionRequest introspectionRequest, Abblix.Oidc.Server.Model.ClientRequest clientRequest);
Parameters
introspectionRequest IntrospectionRequest
The introspection request to validate. It includes the token and client information for validation.
clientRequest ClientRequest
Additional client request information for contextual validation.
Implements ValidateAsync(IntrospectionRequest, ClientRequest)
Returns
System.Threading.Tasks.Task<Abblix.Utils.Result<ValidIntrospectionRequest,OidcError>>
A task representing the asynchronous validation operation. The task result contains the
Abblix.Utils.Result<> which indicates whether the request is valid or contains errors.