Enhancing Authentication Flow and Retrieving Essential Attributes from the Server.
This issue aims to improve the authentication flow and address the need for fetching required attributes from the server. The following enhancements are proposed:
User Role Addition: During the authentication process, the user role will be added to the user profile. This will provide valuable information about the user's role within the application.
Dynamic Attribute Handling: The current implementation of the application relies on hardcoded UIDs for attributes. This approach poses challenges when deploying the application on different DHIS2 servers, as they may have different UIDs and even different attribute names. To overcome this setback, we propose leveraging the capability to manage attribute names and instances in the DHIS2 backend. Instead of relying solely on UIDs, we can utilize attribute names as a means of identification and tracking.