You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/active-directory-b2c/add-captcha.md
+67Lines changed: 67 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,21 @@ You need more claims to enable CAPTCHA in your custom policy:
118
118
<DisplayName>Flag indicating that the captcha was successfully solved</DisplayName>
119
119
<DataType>boolean</DataType>
120
120
</ClaimType>
121
+
122
+
<ClaimTypeId="mfaCaptchaEnabled">
123
+
<DisplayName>flag used to control captcha enabled in MFA</DisplayName>
124
+
<DataType>string</DataType>
125
+
</ClaimType>
126
+
127
+
<ClaimTypeId="signupCaptchaEnabled">
128
+
<DisplayName>flag used to control captcha enabled during signup</DisplayName>
129
+
<DataType>string</DataType>
130
+
</ClaimType>
131
+
132
+
<ClaimTypeId="signinCaptchaEnabled">
133
+
<DisplayName>flag used to control captcha enabled during signin</DisplayName>
134
+
<DataType>string</DataType>
135
+
</ClaimType>
121
136
...
122
137
<!--<ClaimsSchema>-->
123
138
```
@@ -314,6 +329,58 @@ To enable CAPTCHA in MFA flow, you need to make an update in two technical profi
314
329
...
315
330
</TechnicalProfile>
316
331
```
332
+
333
+
### Enable CAPTCHA feature flag
334
+
335
+
To enforce CAPTCHA during sign-up, sign-in, or MFA, you need to add a technical profile that enables a feature flag for each scenario, then call the technical profile in the user journey.
336
+
337
+
1. In the *TrustFrameworkBase.XML* file, locate the `ClaimsProviders` element and add the claims provider by using the following code:
Use the steps in [Upload the policies](tutorial-create-user-flows.md?pivots=b2c-custom-policy&branch=pr-en-us-260336#upload-the-policies) to upload your custom policy files.
0 commit comments