Hello, 
   Just starting to use Shiro in a standlone application and I really like
what I have seen so far. I just have a couple of questions:

1) Is the standalone capability going to be supported going forward - I can
see it's documented as very much a developer aid but it fits very well into
standalone single vm/lightweight apps.

2) once i have authenticated/logged in... i have a requirement to pull out
the actual username and password for the subject later in the application
(to construct credentials for httpbasic auth requests)

Is there any 'shiro way' to do this ? 

                UsernamePasswordToken token = new UsernamePasswordToken("root", 
"secret"
);
                token.setRememberMe(true);
                Subject currentUser = SecurityUtils.getSubject();
                currentUser.login(token);
                ....

                // somewhere else in code
                Subject currentUser = SecurityUtils.getSubject();
                ... ?? how to get users username and password in code ???

Currently investigating using Shiro in a Swing & JavaFX application - so far
so good !

-A-


-- 
View this message in context: 
http://n2.nabble.com/Standalone-Environment-tp3940226p3940226.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to