gawati / gawati-portal-ui

Version 2 of the gawati portal
GNU Affero General Public License v3.0
0 stars 0 forks source link

User Profiles for Logged in Users #60

Open kohsah opened 6 years ago

kohsah commented 6 years ago

Logged in Users need to be able to edit their User Profiles. User profiles for the portal will be managed independent of KeyCloak. This will be done with respect to logins specific to the Portal. User with the role "portal.User" can edit his / her own profile. User with the role "portal.Admin" can edit profiles of users with "portal.User" role. (These are keycloak client roles i.e. specified on the client 'gawati-portal-ui') Changing passwords will still be on keycloak.

Profile will have the information grouped via two visual aspects (like tabs) :

1) Dashboard 2) Edit Profile

1) Dashboard will give access to "Tracked Documents". These are documents that the user is explicitly interested in following in the portal. Note - this "Track Documents" functionality has not been implemented yet, but will be implemented once "User Profile" management is enabled.

2) Edit Profile will allow editing / setting the profile information: -- Alias / Nickname -- Profile Photo Other information from Keycloak authentication needs to be displayed here (but of course not editable) - which includes - first name, last name, email

This will imply storing user profiles into the system in a separate data-store ( couchdb / mongodb ) .

kohsah commented 6 years ago

@surajpt There is bug; when you are on the profile page and you click log-out. You are left on the profile page without any profiles. It should redirect to the home page in such cases.

surajpt commented 6 years ago

@kohsah I will fix.

surajpt commented 6 years ago

@kohsah fixed. Kindly review.