Authorization

Authorization by Roles

In the applications you develop with Kuika, you can manage authorization processes quickly and easily according to the roles in your application. In previous learning contents, we have covered the role creation process in Kuika in detail. In this learning content, I Have an Idea! Web application, we will examine the authorization process according to roles on a real world project.

In the applications you develop with Kuika, you can manage authorization processes quickly and easily according to the roles in your application. In previous learning contents, we have covered the role creation process in Kuika in detail. In this learning content, I Have an Idea! Web application, we will examine the authorization process according to roles on a real world project.

  1. I Have an Idea! Let's continue with the User List screen in the web application.
  2. Select the add new user button on the screen.
  3. Open the Authorization field in the Properties panel.
  4. In previous learning contents, we have advanced the process of adding a role by making the All Roles Access Switch in the Authorization field inactive for the role creation process.
  5. Now select the Manager Role you want to authorize in this field.

The Hide option under the When Not Authorized heading prevents unauthorized roles from viewing the relevant element or screen. The Disable option, on the other hand, prevents any editing on the relevant element or screen and makes it only readable.

  1. Within the scope of the example we have realized, leave the Hide Switch active. This will prevent other roles except the Manager role from seeing the add new user button.
  2. Add the Navigate action that will redirect the button to the relevant screen and provide definitions.
  3. Now add an edit icon next to the icon that allows you to open the detail screen in the list.
  4. Then perform the authorization process on the Edit icon in the user list, which opens the screen that allows editing user information.
  5. Add the action that will provide the relevant screen redirection to the icon and provide parameter definitions.
  6. Now open the screen for adding a new user and editing user information.
  7. Perform similar authorization operations using the Properties panel of the screen.

In a similar context, you can manage authorization processes by applying the same operations on different elements and screens.

Dosyalar

Yardımcı kaynaklar

Sözlük