From: Jody G. <jga...@re...> - 2005-04-15 21:40:43
|
Richard Gould wrote: > I have commented out some lines in WFSDataStore.getConnection() that > with Authentication: > > // synchronized (Authenticator.class) { > // Authenticator.setDefault(auth); > // connection.connect(); > // Authenticator.setDefault(null); > // } > > The setting and unsetting of the default Authenticator destroys the > basic authentication system set up now in uDig. Ideally the security > manager in uDig will be configured properly to prevent this from > occuring, but that is future work. Everyone else needs to play nicely > in the meantime :) > > I have left the rest of the authentication/user-pass bits untouched, > as they might be useful if a better solution arises. One idea I had > was that the datastore provides a mechanism that allows an > authentication object to inquire about any previously entered > usernames/passwords. > > Any other ideas are welcome! Geotools could make use of any of the Security authentication services APIs. By making use of a an API (rather than username/password DataStoreFactory.PARAMs as is done by WFS and most Database implemetnation), applications like GeoServer and uDig would be able to connect GeoTools up to the correct information. This could also be provided by the new Hints? If people think that is a good option? Jody |