Hi,
I'm trying to get Shiro and Waffle working together, and thanks to David
Carr, have UsernamePasswordToken tokens working nicely using the classes
he posted here:
https://issues.apache.org/jira/browse/SHIRO-385
(specifically, the gist here:
https://gist.github.com/4352563).
My simple test project using his classes is here:
https://github.com/bhamail/shiro-test-dan/tree/waffleRealm
(note the branch: waffleRealm).
The relevant classes are:
com.danrollo.davidmc24.waffle.AbstractWaffleRealm
com.danrollo.davidmc24.waffle.GroupMappingWaffleRealm
com.danrollo.davidmc24.waffle.WaffleFqnPrincipal
So far, so good. The web app will validate a given windows user/pwd
using waffle.
The next feature I'm after is to allow a user who is already logged on
to windows to avoid having to logon again in a web app (when using a
browser that supports this - chrome, ie...). Meaning, the user would NOT
provide a username and password.
I've been stepping through the Waffle demo of a SSO tomcat filter, and I
can't see how to convert the "negotiate" logic from that filter (with
it's "continue" support) into the Shiro Realm. Maybe I don't need to
reproduce that, and there is a simpler way to access the current user?
Sorry for the vagaries of this question. If this is better asked on the
Shiro forum, I will do so (but maybe I can at least figure out what
exactly to ask first? ;)
Thanks,
Dan Rollo