Saltar al contenido
Abblix
Esta página aún no está traducida.

ErrorFactory Class

Builds OidcError instances using the error codes RFC 6749 §5.2 defines for the token endpoint. Mirrors the sibling per-area factories (authorization validation, dynamic client registration, secure HTTP fetch): each area exposes only the error codes its specification legitimately uses, so codes from one protocol surface do not leak into another.

C#
public static class ErrorFactory

Inheritance System.Object → ErrorFactory

Methods

ErrorFactory.InvalidRequest(string) Method

Creates an error for a malformed token request — a missing, repeated, or otherwise invalid parameter (RFC 6749 §5.2, invalid_request).

C#
public static Abblix.Oidc.Server.Common.OidcError InvalidRequest(string description);

Parameters

description System.String

The description of the error.

Returns

OidcError
An error instance with the error code and description.

ErrorFactory.MissingParameter(string) Method

Creates an error for a token request whose required parameter is absent (RFC 6749 §5.2, invalid_request).

C#
public static Abblix.Oidc.Server.Common.OidcError MissingParameter(string parameterName);

Parameters

parameterName System.String

The wire-level name of the missing parameter.

Returns

OidcError
An error instance with the error code and description.