Task #253 (closed)
Opened 18 years ago
Closed 18 years ago
Add IAdmin.currentUser() or similar method
Reported by: | jamoore | Owned by: | jamoore |
---|---|---|---|
Priority: | major | Milestone: | 3.0-M3 |
Component: | Security | Version: | 3.0-M3 |
Keywords: | iteration5 | Cc: | jburel |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
Currently after authenticating, there's no way for the user to find out his/her own id. There should be an easy method to do the following:
Login login = new Login("user","password"); ServiceFactory sf = new ServiceFactory(login); Experimenter e = sf.getAdminService().getCurrentUser(); Long me = e.getId();
Change History (2)
comment:1 Changed 18 years ago by jmoore
comment:2 Changed 18 years ago by jmoore
- Keywords iteration5 added
- Resolution set to fixed
- Status changed from new to closed
Covered by #328.
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
Could similarly add a method to ServiceFactory which uses the Principal value to return the current user. Here it might make sense to have ServiceFactory an interface with separate ClientServiceFactory, InternalServiceFactory, and ManagedServiceFactory implementations.