Hi

I'm using a Flex client using RPC and a web server with a Spring-like bean
(singleton).

Broadly speaking, when i call a method in Flex (says 'doit()'), the Flex
Servlet calls the doit() method in the bean.

So, when i authenticate, i do a SecurityUtils.getSubject(), then a
subject.login(). And the Subject is stocked in the ThreadContext.

BUT, when furthermore i want to do something else (get a role for example),
i call SecurityUtils.getSubject() and the subject cames from the
ThreadContext.

There is a problem : The Thread is not the same during the two calls, so at
the second time, the SecurityUtils.getSubject() returns a "empty" subject.

I'm using  a DefaultSecurityManager, and obviously no JSecurityFilter.

So is there a way to fix this trouble ?


Sincerely

Jean-Charles 
-- 
View this message in context: 
http://n2.nabble.com/SHIRO-and-Flex-RPC-tp3230066p3230066.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to