IntrospectionHandler Class
Abblix.Oidc.Server
Abblix.Oidc.Server.Endpoints.Introspection
IntrospectionHandler Class
Manages the processing of token introspection requests according to OAuth 2.0 specifications, facilitating the validation and introspection of tokens to determine their current state and metadata.
public class IntrospectionHandler : Abblix.Oidc.Server.Endpoints.Introspection.Interfaces.IIntrospectionHandler
Inheritance System.Object → IntrospectionHandler
Implements IIntrospectionHandler
Constructors
IntrospectionHandler(IIntrospectionRequestValidator, IIntrospectionRequestProcessor) Constructor
Manages the processing of token introspection requests according to OAuth 2.0 specifications, facilitating the validation and introspection of tokens to determine their current state and metadata.
public IntrospectionHandler(Abblix.Oidc.Server.Endpoints.Introspection.Interfaces.IIntrospectionRequestValidator validator, Abblix.Oidc.Server.Endpoints.Introspection.Interfaces.IIntrospectionRequestProcessor processor);
Parameters
validator IIntrospectionRequestValidator
An implementation of IIntrospectionRequestValidator tasked with validating introspection requests against OAuth 2.0 standards.
processor IIntrospectionRequestProcessor
An implementation of IIntrospectionRequestProcessor responsible for processing validated introspection requests and retrieving token information.
Methods
IntrospectionHandler.HandleAsync(IntrospectionRequest, ClientRequest) Method
Asynchronously handles an introspection request by validating the request and, if valid, processing it to return the state and metadata of the specified token.
public System.Threading.Tasks.Task<Abblix.Utils.Result<Abblix.Oidc.Server.Endpoints.Introspection.Interfaces.IntrospectionSuccess,Abblix.Oidc.Server.Common.OidcError>> HandleAsync(Abblix.Oidc.Server.Model.IntrospectionRequest introspectionRequest, Abblix.Oidc.Server.Model.ClientRequest clientRequest);
Parameters
introspectionRequest IntrospectionRequest
The introspection request containing the token to be introspected and other relevant parameters.
clientRequest ClientRequest
Supplementary information about the client making the request, useful for contextual validation.
Implements HandleAsync(IntrospectionRequest, ClientRequest)
Returns
System.Threading.Tasks.Task<Abblix.Utils.Result<IntrospectionSuccess,OidcError>>
A System.Threading.Tasks.Task that resolves to an IntrospectionSuccess, which includes the token's
active status and potentially other metadata, or an OidcError if the request is invalid.
Remarks
Implementations of this method are crucial for maintaining the integrity and security of token-based authentication systems by allowing resource servers and other entities to verify the validity and attributes of tokens.