Direkt zum Inhalt

How to integrate AWS WAF Captcha in vuejs?

0

I'm trying to integrate aws captcha to my login screen.

the captcha renders, user completes puzzle and verify api is called successfully.

but how do I get the success status after puzzle completed

AwsWafCaptcha.renderCaptcha(container, {
      apiKey: "ApiKeyHere",
      onSuccess: captchaExampleSuccessFunction,
      onError: captchaExampleErrorFunction
    });



captchaExampleSuccessFunction(wafToken) {
        window.AwsWafIntegration.fetch(this.captchaVerifiedFn());
    },

I need to call captchaVerifiedFn() after user completes puzzle.

Any help would be appreciated.I need to call captchaVerifiedFn() after user completes puzzle.

Any help would be appreciated.

gefragt vor 2 Jahren956 Aufrufe
1 Antwort
0
EXPERTE
beantwortet vor 2 Jahren
  • Hi Didier, thanks for the response, I've implemented same as in the first link, but this "onSuccess: captchaExampleSuccessFunction" is only executing after rendering the captcha not after solving the puzzle.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.