Access Control Services
Configure role based user access and map actions to roles
Last updated
Was this helpful?
Configure role based user access and map actions to roles
Last updated
Was this helpful?
DIGIT is an API-based platform where each API denotes a DIGIT resource. The primary job of Access Control Service (ACS) is to authorise end-users based on their roles and provide access to the DIGIT platform resources. Access control functionality is essentially based on the following points:
Actions: Actions are events performed by a user. This can be an API end-point or front-end event. This is the MDMS master.
Roles: Roles are assigned to users. A single user can hold multiple roles. Roles are defined in MDMS masters.
Role-Action: Role actions are mapped between Actions and Roles. Based on roles, the action mapping access control service identifies applicable actions for the role.
Before you proceed with the configuration, make sure the following pre-requisites are met -
Java 17
service is up and running
Serve the applicable actions for a user based on user roles.
On each action performed by a user, access control looks at the user's roles and validates actions that map with the role.
Support tenant-level role action - For instance, an employee from Amritsar can have the role of APPROVER for other ULBs like Jalandhar and hence will be authorised to act as APPROVER in Jalandhar.
Define the roles:
Add the actions (URL)
Add the role action mapping
Any service that requires authorisation can leverage the functionalities provided by the access control service.
To add a new service to the platform, simply update its role action mapping in the master data. The Access Control Service will handle authorisation each time the microservice API is called.
The service needs to call /actions/_authorize
API of Access Control Service to check for authorisation of any request.
/actions/_authorize
the latest version of the Access Control Service
Note: This video will give you an idea of how to deploy any Digit-service. Further, you can find the latest builds for each service in our latest here.
service to fetch the Role Action Mappings
Note: This video will give you an idea of how to deploy any Digit-service. Further, you can find the latest builds for each service in our latest here.
The details about the fields in the configuration can be found in the
To integrate with the Access Control Service the has to be configured (added) in the MDMS service.