跳至內容

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.

已提問 2 年前檢視次數 957 次
1 個回答
0
專家
已回答 2 年前
  • 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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。