Security is pretty important and I can't wait to get it to work. My problem is I keep getting the error message:
"Unable to locate a login configuration".
I know this issue has been discussed a bit, but if anyone could post an example showing all the files that need to be set up, I would greatly appreciate it.
I am attempting to run the example written by Scott Stark in his helpful article at javaworld:
If interested, here are what my files look like:
users.properties in the jar file
# The username to password mapping properties file
roles.properties in the jar file
# The username to role(s) mapping properties file
and the client attempt to get a LoginContext (that fails):
AppCallbackHandler handler = new AppCallbackHandler("java", "echoman");
LoginContext lc = new LoginContext("example1", handler);
Any help would be greatly appreciated.
On M$ Windows, I placed the client auth.conf in a directory, Jboss will find it if you specify the following line of code:
By doing this, I got Scott Stark's example SessionClient working.