Skip to main content

Authorization

Authorization Service manage permissions of an account. Provide an API for Authentication Service get roles by account's identity. In addition, Authorization Service also provide some APIs to setup permissions for accounts, roles.

1. Tech stacks

2. Develop

Prepare your environment variables and configure it based on configs/config.yaml file.

Start the server

kratos run

3. Database Tables

ER Diagram

Note:

  • permissions: Manage all API Modules as a permission identity.
  • permission_details: Manage all function of the Module.
  • roles: Manage all Roles on PMC system. Eg: Developer, QC, BA, Accounting etc.
  • account_permissions: Mapping account's permissions.
  • role_permissions: Mapping role's permissions.
  • account_roles: Mapping account's roles.