UNDP-Accelerator-Labs / platform

GNU General Public License v3.0
1 stars 0 forks source link

Login platform and SSO implementation #245

Closed this-pama closed 5 months ago

this-pama commented 5 months ago

This PR introduces a significant update to our authentication system. A new login platform will be created to handle all login-related actions. Additionally, configurable system variables have been set for restricted and allowed desired route paths, tailored to different platform instances. This has no impact on existing instances, but will be needed for the login app as some routes are restricted within the application. Going forward, we can use these variables to configure restricted or allowed paths within the platforms. Additionally, the required setting up for SSO (Single Sign-On) integration logic have also been implemented. Once we have the the required token from the responsible teams, we can enable the SSO functionality. The SSO button can be disable from the configuration file until we are set and ready to open this to the user.

Requirements for this PR:

this-pama commented 5 months ago

TODO:

Add a middleware to block all routes except the login for login platform (done) Create contributors only from login platform (done) Check whether removing pads from the config module breaks system. (No impact on system. however pad menu is still showing even when not enabled in the configuration file) Have a button to request elevated rights from the login platform. ( What happens when a user request elevated rights? Who can approve a request for rights elevation? Any users with rights 3 and above or the collaborators? who gets notified when a user request elevation? e.t.c. User flow for requesting elevated rights need to be discussed.