cloudflare-turnstile-bundle icon indicating copy to clipboard operation
cloudflare-turnstile-bundle copied to clipboard

Overriding the secret and key at runtime

Open Legendary4226 opened this issue 1 year ago • 1 comments

Hi!

I work on a project that manage multiple domains name that point to an "instance". So, for one project and one .env, my users are able to configure their own Turnstile credentials! And, I'm facing the issue that I have to override at least three of your project files (final class CloudflareTurnstileHttpClient, final class CloudflareTurnstileValidator and class TurnstileType extends AbstractType). But two of them are final !

Did you understood what I'm looking for and [will you have the time / do you plan to] add such a feature ?

Legendary4226 avatar Mar 14 '25 11:03 Legendary4226

Not the same usecase but I'm interested as well, because I have 2 different turnstiles mode (one managed, one invisible), so 2 differents pair of keys.

Moreover, adding an option for invisible widgets would be interesting, but the behavior is still to be determined (for ex, the result of the validation should be accessible but not trigger a fail in validation).

johndodev avatar Apr 10 '25 14:04 johndodev