Implement user authentication and display
#3 Updated by ben leinfelder almost 9 years ago
- Assignee set to ben leinfelder
- Status changed from New to In Progress
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.