Hi,
I'm still not satisfied with the options so far and I'm sure I do not fully
understand it:
Although the valve works in that I can set the principal on the catalina
request, realm.authenticate("username","credentials") within the valve is not
actually passing anything to my JAAS login modul
The authentication will take place without any user intervention. For example,
from a request parameter or cookie value.
BTW, I have just managed to get it to work by using a custom Valve that extends
AuthenticatorBase and uses my JAAS realm. The valve adds the principal to the
request and this
I need to login programmatically, but continue to support getRemoteUser().
I have written a csutom JAAS login module (no callbackhandler required) and
this can be seen to run when I programmatically logon within my filter
servlet using:
LoginContext lc = new LoginContext("MyJAASAccess",subject)