Feature #5961
closedImplement user authentication and display
0%
Updated by Matt Jones over 11 years ago
- Target version changed from 1.0.0 to 1.1.0
Updated by ben leinfelder over 11 years ago
- Target version changed from 1.1.0 to 1.0.0
Updated by ben leinfelder over 11 years ago
- Status changed from New to In Progress
- Assignee set to ben leinfelder
I have the login working with both the Perl registry and the Metacat servlet. It's rather complex, but ends up working out just fine.
First, we submit the user credentials (username+organization, password) to the Perl registry which logs us in using the Metacat Perl client.
At that point the CGI sends back a CGISESSID cookie and a Metacat login form with the same username+password credentials that we can submit to the Metacat API which, when successful, sends us back a JSESSIONID cookie.
So we have a cookie for each service that we are authenticated for.
With the CGI cookie we can upload and edit registry data sets
With the Metacat JSESSIONID we can search for private content.
Upon initial login, the AppModel (and nav header) show the current username. I need to add a server call that checks whether this (both) session is still valid, but other wise this is working well.
Updated by ben leinfelder over 11 years ago
- Status changed from In Progress to Closed
Integrated the login with the nav bar -- now displaying the user's full name (from Metacat) when they are authenticated with username+password. works across browser refreshes