spryker / captcha-extension
CaptchaExtension module
Requires
- php: >=8.3
- spryker/transfer: ^3.27.0
Requires (Dev)
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-16 16:06:07 UTC
README
CaptchaExtension module provides the plugin interfaces and transfers of the Captcha module. Spryker\Client\CaptchaExtension\Dependency\Plugin\CaptchaProviderPluginInterface connects a CAPTCHA vendor: createChallenge(), verify(), getResponseFieldName() and isConfigured(), which says whether the provider settings are set up; the Back Office refuses to turn the CAPTCHA on while it returns false. A provider can also implement Spryker\Client\CaptchaExtension\Dependency\Plugin\CaptchaChallengeUrlProviderPluginInterface: createChallengeUrlWidget() requires context and challengeUrl and returns a widget that fetches its challenge from CaptchaChallengeRequest.challengeUrl, so a page render creates no challenge, and createChallengeData() creates the challenge and returns its JSON document in CaptchaChallengeDataResponse.challengeData. Spryker\Shared\CaptchaExtension\Dependency\Plugin\CaptchaRequirementPluginInterface::isCaptchaRequired() is the step-up plugin for the Yves and Zed login forms: in the after_failed_attempts CAPTCHA mode the Captcha module requires a CAPTCHA for a login form context when any plugin returns true, for example the security blocker plugins after failed login attempts.
Installation
composer require spryker/captcha-extension