Hi again,
I have got some parts of the problem working which is sort of a work around.
I wrote my callbackhandler and customloginmodule. To the callbackhandler I pass
the IP address instead of the password although the type is still
PasswordCallback. In the customloginmodule(extended from
UsernamePasswordLoginModule) made the following change-
protected String getUsersPassword()
throws LoginException
{
return ("IP I am looking for");
}
protected Group[] getRoleSets()
{
Group[] groups = {new SimpleGroup("Roles")};
SimplePrincipal role = new SimplePrincipal("Priviliged");
groups[0].addMember(role);
return groups;
}
Now in one of the action classes, I created a new logincontext and invoked the
login method.
The problem is that the JBoss server still does not know the user has been
authenticated with the given role. When trying to access a protected resource
with anonymous(null) user and Priviliged role, it still asks for the username
and password.
I'd really appreciate any help.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880865#3880865
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3880865
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user