Hi all,
I am new to JSec. I was messing with Spring Security before deciding to
try JS. Here is where I am stuck. I have created a simple web app
using the jsp pages from the web sample in the JS distribution. I have
successfully configured JS to use either Basic Auth or Form Auth
filters. I read that to use my own realm, I could set my own realm in
the default security manager (which is the only implemented security
manager and which is created by default). So i did something like this:
MyRealm myRealm = new MyRealm();
DefaultWebSecurityManager dsm = new DefaultWebSecurityManager(myRealm);
SecurityUtils.setSecurityManager(dsm);
MyRealm implements Realm, I have also tired extending one of the other
realms. I have even tried creating a default security manager and
setting the realm.
None of my efforts have been successful so far. So what exactly am I
doing wrong or missing?
I have been able to get the login page and my servlet to handle the
login form to invoke. In my servlet i tried to do all of this and login
(this is just testing stuff).
Please help.
Thanks.
.v