-
1. Re: simple EJB login?
jwkaltz Nov 5, 2001 5:51 AM (in response to dlabrosse)Why exactly this is as it is, I can't say for sure, but that is definitely the way to authenticate in JBoss. The Context stuff is explicitly not supported in JBoss, you must use the ClientLoginModule.
My guess is, that's the way it is because 1. JBoss tries to use JAAS in a consistent way (that's why you specify a JAAS login module to bind your credentials instead of setting some properties in a class); and 2. there are probably some more things happening behind the scenes and the author thought it would be cleaner to wrap this in an object like the ClientLoginModule. -
2. Re: simple EJB login?
dlabrosse Nov 5, 2001 6:59 AM (in response to dlabrosse)Finally got everything working! I just used the standard - AppCallbackHandler implements CallbackHandler class.
AppCallbackHandler handler = new AppCallbackHandler(user, pass.toCharArray());
LoginContext lc = new LoginContext("client-login", handler);
The client used auth.conf by setting -Djava.security.auth.login.config==auth.conf which contained -
client-login {
org.jboss.security.ClientLoginModule required;
};
thanks for you input.