Custom Authorization Provider

Custom Authorization Provider is used to determine the roles of users within the application.

  1. Select the C# data source, enter a name.
  2. Select the Custom Authorization Provider method.
  3. Click the CREATE button.

Custom Authorization Class and Get Roles Method

Kuika provides a ready-made C# predefined function in Custom Authorization for users. This function contains the following methods and variables:

  • Get Roles Method: Returns which roles the user has in the application.
    • Parameters:
      • App Id: The unique ID (GUID) of the app.
      • App Name: The name of the app.
      • Screen Id: Unique screen-specific ID (GUID).
      • Screen Name: The name of the screen.
      • User Name: Email address or ID of the user.

If no custom authentication system is to be applied, return null should be used. In this case the default system behavior is preserved and no special role is assigned to the user.

The comments provided in the code help developers understand how to use the function. In particular, editable areas of the code are specified for developers who want to define custom roles. This structure can be used to define customized roles for workers on specific screens or application sections.