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.
- Github repo: https://github.com/Pharmacity-JSC/pmc-ecm-authorization-api
- Checkout our swagger: https://pmc-ecm-authorization-api.dev.pharmacity.io/q/swagger-ui
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

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.