[jboss-user] [Security & JAAS/JBoss] - Using j_security_check with a custom Principal , a custom Ca

emailmsgbox do-not-reply at jboss.com
Thu Jul 13 10:31:21 EDT 2006


Hear me out, I'll make it short
I need username, password and kuku as parameters in my CallbackHandler  and my LoginModule

when I initiate a login using my CallbackHandler MyPrincipal  to my facades local or remote 
like this 

  | MyLoginHandler login = new MyLoginHandler(new MyPrincipal(  username, kuku),password);
  | loginContext = new LoginContext("my-login",login);
  | loginContext.login();
  | ...
  | 

all is good

but when I try the "full Monty" meaning web and EJB with auth-method FORM (j_security_check) I of course fail , 
since the CallbackHandler  that I get in my login module is a with a SimplePrincipal
and this SimplePrincipal is missing the extra parameter

So my problem is to pass the extra parameter to the my LoginModule
how do I get the j_security_check to take the extra paramenter and pass it on . in some way 

I looked at the ExtendedFormAuthenticator but I do not see how could did help me.
since I do not use a filter

So be a sport and H-E-L-P



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957753#3957753

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957753



More information about the jboss-user mailing list