Skip to main content

Crate captcha_sdk

Crate captcha_sdk 

Source
Expand description

Unified, provider-independent types for server-side CAPTCHA verification.

Provider adapters are feature-gated. The initial 0.1.0 scaffold defines their configuration surfaces; HTTP verification will be added separately.

Modules§

providers
Feature-gated provider adapter scaffolds.

Structs§

CaptchaToken
An opaque token produced by a CAPTCHA provider’s client-side widget.
ProviderId
A stable, validated identity for a CAPTCHA provider product.
VerificationError
Error raised when no normalized verification result can be produced.
VerificationRequest
Provider-independent input for one verification attempt.
VerificationResult
Provider-independent outcome of a CAPTCHA verification attempt.

Enums§

CaptchaTokenError
Reason a CAPTCHA token could not be accepted.
FailureReason
A normalized reason explaining why a CAPTCHA was not accepted.
InvalidProviderId
Reason a provider identifier could not be accepted.
VerificationErrorKind
Broad category for failures that prevent a verification result.

Constants§

MAX_CAPTCHA_TOKEN_LEN
Maximum accepted CAPTCHA token length, in bytes.
MAX_PROVIDER_ID_LEN
Maximum accepted length of a provider identifier, in ASCII bytes.
MAX_PROVIDER_ID_SEGMENT_LEN
Maximum accepted length of one provider identifier segment, in ASCII bytes.

Traits§

CaptchaVerifier
Provider-independent interface implemented by CAPTCHA adapters.

Type Aliases§

VerificationFuture
The boxed future returned by an object-safe CaptchaVerifier.