This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Configuring reCaptcha for Single Sign-On
This topic guides you through configuring reCAPTCHA for the single sign-on flow. By configuring reCAPTCHA, you can mitigate or block brute force attacks.
For more information on configuring single sign-on, see Configuring Single Sign-On.
For more information on brute force attacks, see Mitigating Brute Force Attacks.
Set up reCAPTCHA with WSO2 Identity Server. For instructions on how to do this and more information about reCAPTCHA, see Setting Up reCAPTCHA.
If you want to modify the filter mapping for reCAPTCHA:
Open the
web.xmlfile in the<IS_HOME>/repository/conf/tomcat/carbon/WEB-INFdirectory.Locate the following filter and modify the relevant URL patterns if required.
<filter> <filter-name>CaptchaFilter</filter-name> <filter-class>org.wso2.carbon.identity.captcha.filter.CaptchaFilter</filter-class> </filter> <filter-mapping> <filter-name>CaptchaFilter</filter-name> <url-pattern>/samlsso</url-pattern> <url-pattern>/oauth2</url-pattern> <url-pattern>/commonauth</url-pattern> <dispatcher>FORWARD</dispatcher> <dispatcher>REQUEST</dispatcher> </filter-mapping>
Start WSO2 Identity Server and sign in to the Management Console.
On the Main tab, click Identity > Identity Providers > Resident.
To configure captcha:
Expand Login Policies > Captcha for SSO Login.
Provide the required data as given below.
To configure account locking:
Expand Login Policies > Account Locking.
Provide the required data as given below.
Click Update.
You have successfully configured reCAPTCHA for SSO.Access the WSO2 Identity Server Dashboard.
Attempt signing in as an administrator with an incorrect password for three times. The reCAPTCHA appears.