Any sample to integrate AD B2C Custom Policy with recaptcha V3, I could see integration with recpatcha v2 sample however looking for v3
Asked
Active
Viewed 2,092 times
1 Answers
4
This Azure AD B2C sample demonstrates integration of Azure AD B2C with the reCAPTCHA v2 API but it shouldn't be difficult to modify both the client-side code and the server-side code to the reCAPTCHA v3 API.

Chris Padgett
- 14,186
- 1
- 15
- 28
-
I see a challenge in passing the token set as hidden field to the Custom Policy Claim – Aparna Jul 16 '19 at 10:01
-
You can submit the reCAPTCHA token using: `grecaptcha.execute('reCAPTCHA_site_key', {action: 'registrationpage'}).then(function(token) { $('#g-recaptcha-response-toms').val(token); }` – Chris Padgett Jul 17 '19 at 06:36
-
See [here](https://github.com/azure-ad-b2c/samples/blob/650dbb2ddacb8fe8dd1fde34c33f4db9990b7812/policies/captcha-integration/policy/Captcha_TrustFrameworkExtensions.xml#L12) for the claim declaration of **g-recaptcha-response-toms** and [here](https://github.com/azure-ad-b2c/samples/blob/650dbb2ddacb8fe8dd1fde34c33f4db9990b7812/policies/captcha-integration/policy/Captcha_TrustFrameworkExtensions.xml#L83) for reference to it as an output claim on the self-asserted page UI. – Chris Padgett Jul 17 '19 at 06:38
-
You have used microsoft:aad:b2c:elements:selfasserted contract instead of unifiedssp and explicitly gave signup and forgot password link. Can we not use the unifiedssp here , as it has inbuilt signin and forgot pass links – Aparna Jul 19 '19 at 05:27
-
Hi @Aparna Are you adding reCAPTCHA to your sign-in page are you? – Chris Padgett Jul 19 '19 at 05:39