euan crawford wrote:
I need to authenticate users of my uDig plugin (restricts access to a
MySQL backend and selectively disables tools/menu items according to a
user's role). The hooks for displaying a login form are ..
#1 at uDig startup: clean for the user but requires catching
UDigApplication.run() and showing the login before
createAndRunWorkbench()) is called. However I don't want to make
changes to the uDig platform. Is it possible to create a new RCP
application that extends uDig - it would one contain one class that
overrides and calls UDigApplication.run() after the login.
#2 during plugin initialization: ideal but can't be done with lazy
loading of plugins. Classes within a plugin are only loaded when the
UI component (tool/menu etc) is invoked?
#3 on demand (user presses a login tool): not ideal as it requires an
extra mouse click and the menus/tools to be disabled at startup.
Any suggestions/comments?
We did design a security module in our initial requirements, it has not
been implemented yet. You can see some security work associated with WMS
and DACS that richard can tell you about.
For J2EE I have been considering this as well, so far my best idea has
been to borrow from another LGPL RCP application: JFire.
They share a booth Richard so perhaps he can ask them -
http://www.eclipsecon.org/2006/Sub.do?type=pavillion
Jody
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel