In order to use the ReCaptcha element, different key information is required for each platform (Web, Android, iOS). These keys from the Google ReCaptcha service must be generated platform-specific. The key information received separately for web, Android and iOS must be entered into the Google Recaptcha field in the Configuration Manager module specific to each platform to ensure the correct verification process.
Google Console ReCaptcha Settings
Follow the steps below to get Google ReCaptcha keys:
Create a new “Private Key (.p8)” file by clicking the “+” button on the “Keys” tab.
Enter the “Key Name” and click on the “Register” button and download the .p8 file by clicking on the “Download” button.
The .p8 file can only be downloaded once.
Upload the downloaded .p8 file to the ReCaptcha page.
For the “Key Identifier” field, get the “KEY ID” of the key created in the “Certificates, Identifiers & Profiles” section.
For the “Team ID” field, use the code that appears under your name at the top right on the same page.
After the domain name is saved, select the relevant options from the Key Type field and click the “Create Key” button.
The generated key will be listed on the page.
Kuika ReCaptcha Integration
Up to this stage, we have created Web, Android and iOS keys. Now we will use the keys we have received on the Kuika platform.
If you are going to use it for mobile applications, you need to create a mobile application first. You can reach our related content to create a mobile application.
WEB Integration
Go to the “Configuration Manager” module.
In the “App Settings” tab and find the “Google Recaptcha” field. For detailed information, you can review our Configuration Manager content.
Click on the “Add New” button.
In the window that opens, fill in the “Name” field as desired.
Get the “Site Key” and “Secret Key” fields from the values in the Web Key generated by Google.
Go back to the Google Recaptcha page and click the Key Details button in the web key we created.
On the Details page, go to the Integrations tab and click on the “Integrate with a third-party service or plugin” button.
In the incoming window is the Secret Key.
“ID” value -> “Site Key”
“Secret Key” value -> “Secret Key”
After entering the required information, save it in the field in the Configuration Manager module. You can create a configuration for Android and iOS applications by following similar steps.
Android Integration
Go to the “Configuration Manager” module.
In the “Android” tab, scroll to the bottom of the page and find the “Google Recaptcha” field.
Click on the “Add New” button.
Fill in the “Name” field as desired.
In the “Site Key” field, enter the “ID” value of the Android Key you created.
Save after entering the required information.
iOS Integration
Go to the “Configuration Manager” module.
In the “iOS” tab, scroll to the bottom of the page and find the “Google Recaptcha” field.
Click on the “Add New” button.
Fill in the “Name” field as desired.
In the “Site Key” field, enter the “ID” value of the iOS Key you created.
Save after entering the required information.
After completing these steps, go back to the UI Design module.
Add Validation to the ReCaptcha element from the ADD VALIDATION button on the right side.
Then add the OnClick→ Verification→ Verify ReCaptcha Token action to the button where you want to add the ReCaptcha validation. If you need to logout, add the Logout action.
So, to add Recaptcha verification, you can add the Verify ReCaptcha Token action to the button that needs to be verified and theLogout action to the button that needs to be logged out.