I think I answered my own question. It works if I change the method to:
public Subject getSubjectByLogin(final String login) {
PrincipalCollection principals = new
SimplePrincipalCollection(login,
REALM_NAME);
return new
Subject.Builder(SecurityUtils.getSecurityManager()).buildSubject();
}
I'm not exactly sure why it works this way and not the original way.
Thanks,
Dan
--
View this message in context:
http://shiro-user.582556.n2.nabble.com/Subject-being-changed-tp7370203p7370270.html
Sent from the Shiro User mailing list archive at Nabble.com.