Tarek Hammoud [
https://community.jboss.org/people/thammoud] created the discussion
"Re: ClientLoginModule support"
To view the discussion, visit:
https://community.jboss.org/message/750783#750783
--------------------------------------------------------------
Thanks Wolf,
When I add:
jndiProps.put(Context.SECURITY_PRINCIPAL, "foo");
jndiProps.put(Context.SECURITY_CREDENTIALS, "bar");
the code works properly. However, I do not want to specify the credentials in the hash
table and want the context factory to use the credentials as set by my:
LoginContext lc = new LoginContext("client-login", new
UsernamePasswordHandler(userName, password.toCharArray()));
lc.login();
From the link you provided, I do not see any references to JAAS. I
still see username/password hardcodes as properties.
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/750783#750783]
Start a new discussion in JBoss AS 7 Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]