When developing applications with Kuika, you can use various data sources and create Custom Action with the help of different tools. One of these tools is C#. C# is one of the most widely used programming languages in modern application development and can be used as a powerful data source integration tool on the Kuika platform. In this course, you will learn how to connect your applications to databases, apply object-oriented programming, and develop performance-oriented applications using C#.
This training content consists of the following topics:
3. To add a new data source to your application, click the “+” (2) icon next to the “Sources” heading on the left side of the Data Sources module.
Let's examine the sections on the C# detail screen.
When writing your C# functions, you can prepare faster and more efficiently by using AI-powered tools on the Kuika platform. Open the chat area using the “Generate with AI” option in the top menu and define the function you want to create here to the AI. For example, if you want to print a “Hello world rotating function”, tell the AI your request. The AI will quickly create this function and present it to you.
The code generated by the AI is written in accordance with C# language rules and optimizes your function according to the features you specify. You can easily copy the generated code and add it to your project. This is especially useful when writing complex algorithms or when you want to save time. You can also create different variations of the functions by interacting with artificial intelligence, so you can get the best solutions for your application.
A Custom Authentication Provider is a specially created structure to authenticate users and provide security when standard authentication solutions are insufficient. It is usually designed for specific requirements or functions.
You can follow these steps to create a Custom Authentication Provider:
The created Custom Authentication Provider opens with a predefined class. It contains a C# class and an instance of a class that implements the custom authentication provider. This class provides the customized functionality for user authentication and contains comments to describe this functionality.
The Custom Authentication class implements the Custom Authentication interface. This interface defines the authentication functions. The following methods are provided in the code ready for users:
Custom Authorization Provider is a structure used to create a customized authentication and authorization system. It is used to determine the user's roles within the application and allows you to determine which roles users have on the web or mobile side at the opening of each screen within the application by taking from different systems (for example, Azure, custom databases, etc.).
You can follow these steps to create Custom Authorization Provider:
The Custom Authorization Provider you created represents a C# class that manages user authentication and authorization.
Kuika provides a ready-made C# predefined function in Custom Authorization for the user. This function contains the following methods and variables:
The Get Roles method returns which roles the user has in the application. This method takes the following parameters:
return null; This line should be used if this particular authentication system does not want to customize application roles. In this case, the default system behavior is preserved and no custom role is assigned to the user.
The comments provided in the code contain important information about how the code should be used. In particular, they indicate that if it is desired to define developer-specific roles, the relevant script should be opened and the list of appropriate roles should be inserted instead of the code fragment specified here.
It can be used to customize the authentication and authorization processes of an application. For example, you may want to define special roles for workers on a particular screen or application partition. This class can be used to meet such requirements and provides developers with a starting point for customizing roles.
Verification Code Sender Provider is a service that an application or service uses to send verification codes to its users. This type of service is used to authenticate users or to send temporary or single-use codes for security purposes.
Follow the steps below to receive Verification Code via SMS or Notification other than email:
With these steps, users will receive verification codes and security processes will be supported.
In this example, we create a class called Calculator and include a method that performs addition. Also, explanations are added for each section:
This example shows the process of creating a class in C#, defining methods and using those methods to perform a simple calculation.