Kuika's Recaptcha element protects your applications from automated processes and bots. It offers a user-friendly verification process, guaranteeing that only real users gain access. This element is ideal for increasing security, especially on forms and login screens. In this tutorial, you will learn how to use the Recaptcha element and how to configure validation settings.
This training content consists of the following topics:
Add Recaptcha element
Recaptcha validation settings
Settings required to use ReCaptcha
Elements settings and customization
Add ReCaptcha Element
Log in to the Kuika platform.
Select the project you will work on from the Apps screen.
Enter the UI Design module.
From the Elements panel on the left side, drag the Recaptcha element under the Interactive category and drop it on your screen.
Settings Required for ReCaptcha Usage
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.
If verification fails, check key configurations in Google Console.
If you are getting errors in API calls, make sure the secret key is entered correctly.
If the reCAPTCHA element does not appear on the page, check the integration on the UI side and complete the missing actions.
Element Settings and Customization
Authorization
Anonymous Access: Allows users to access without entering account information.
All Roles Access: Provides access by verifying users' account information.
For element-level authorization, edit Authorization settings in the Properties panel.
Visibility
Always Visible: Element is always visible.
Hidden: Element is hidden.
Sometimes Visible: The element is visible depending on a specific condition.
To configure the setting:
Select the element on the screen.
Open the Properties panel on the right edge.
In the Visibility field, select an option according to your needs.
Editability
Enabled: Elements can be edited.
Disabled: Element cannot be edited.
Sometimes Enabled: The element can be edited or uneditable according to certain conditions.
Interface Design with Style Panel
By customizing your elements with the Styling Panel, you can create impressive interfaces for your web and mobile applications. In this section, you can configure the following settings:
Layout: Sizing, alignment and padding settings. Settings include Size, Min Size and Align.
Text: Font, style, color, size and spacing settings.
Fill: Customize the background with color or images.
Border: Add borders and corner radius settings.
Shadow: Add a shadow effect to add depth to elements.
By following these steps, you can configure the Area Chart element to suit your needs.
Actions
Kuika supports the following system actions:
Arithmetic, Authorization, Condition, Device, Export, Geolocation, Inversion, Local Storage, Multi Language, Navigation, Notification, Payment, UI Control, Process Administration, Process Automation, Trigger, Process Automation, Process Administration and String Operations.
You can also use SQL actions that you create yourself.
You can use the +ADD ACTION button from the Properties panel to add an action.
Actions support may not be available in some elements.