Accesing Spring based server with security credentials (ACEGI) [message #448129] |
Tue, 18 April 2006 18:24 |
Eclipse User |
|
|
|
Originally posted by: jsilva.inf.utfsm.cl
The Spring Rich Client implements a method for keep, in a thread local,
the credentials of a user autenticated with ACEGI in the server...
Is simply to do that with Eclipse RCP?
I use the Eclipse RCP 3.1.2 and i want to do the same , keep a
threadlocal with the credetinals of the current user for accesing the
httpinvoker exposed services.
Before look at the Spring Rich Client code and implement it, i ask if
anybody knows some similar (i don't want re-invent the weel).
Thank in advance
Toño.
www.jcode.cl
|
|
|
|
Re: Accesing Spring based server with security credentials (ACEGI) [message #448514 is a reply to message #448129] |
Tue, 25 April 2006 15:50 |
Neil Bartlett Messages: 93 Registered: July 2009 |
Member |
|
|
Jose,
You can do the authentication in the IPlatformRunnable before the
Workbench opens, but the problem with putting the credentials into a
thread local is that Eclipse is multi-threaded! Unless you could arrange
that all access to the httpinvoker is from the same thread, you're going
to have a problem if you use the Jobs API (for example). Perhaps you could
implement something similar to UIJob, which keeps all UI access on the
event dispatcher thread?
Also, although I don't know anything about Acegi, if it is JAAS-based then
take a look at EclipseJAAS (http://sf.net/projects/eclipse-jaas)
Regards
Neil
Jose Antonio Silva Portell wrote:
> The Spring Rich Client implements a method for keep, in a thread local,
> the credentials of a user autenticated with ACEGI in the server...
> Is simply to do that with Eclipse RCP?
> I use the Eclipse RCP 3.1.2 and i want to do the same , keep a
> threadlocal with the credetinals of the current user for accesing the
> httpinvoker exposed services.
> Before look at the Spring Rich Client code and implement it, i ask if
> anybody knows some similar (i don't want re-invent the weel).
> Thank in advance
> Toño.
> www.jcode.cl
|
|
|
Powered by
FUDForum. Page generated in 0.03052 seconds