SyncTokenContextValidatorBase Class
Abblix.Oidc.Server
Abblix.Oidc.Server.Endpoints.Token.Validation
SyncTokenContextValidatorBase Class
Provides a base class for implementing synchronous token context validators. This class simplifies the creation of token context validators by offering a synchronous validation method that is automatically wrapped in an asynchronous call.
public abstract class SyncTokenContextValidatorBase : Abblix.Oidc.Server.Endpoints.Token.Validation.ITokenContextValidator
Inheritance System.Object → SyncTokenContextValidatorBase
Derived
↳ ResourceValidator
↳ ScopeValidator
Implements ITokenContextValidator
Methods
SyncTokenContextValidatorBase.ValidateAsync(TokenValidationContext) Method
Asynchronously validates the token request within the provided context by invoking the synchronous Abblix.Oidc.Server.Endpoints.Token.Validation.SyncTokenContextValidatorBase.Validate(Abblix.Oidc.Server.Endpoints.Token.Validation.TokenValidationContext) method.
public System.Threading.Tasks.Task<Abblix.Oidc.Server.Common.OidcError?> ValidateAsync(Abblix.Oidc.Server.Endpoints.Token.Validation.TokenValidationContext context);
Parameters
context TokenValidationContext
The context containing the token request and related information that needs to be validated.
Implements ValidateAsync(TokenValidationContext)
Returns
System.Threading.Tasks.Task<OidcError>
A System.Threading.Tasks.Task that resolves to a OidcError containing error details
if the validation fails;
otherwise, resolves to null indicating that the validation was successful.