[JBoss Seam] - Login Best Practices
by chubby
I was wondering if there a good Wiki page covering best practices for Login security for web apps?
One specific question I have is with regards to a login form on the home page (non-secure) that submits to the login action. Because I cannot specify a scheme with JSF/JBoss seam in the h:form tag, I cannot force it to submit to an https URL.
The best I can do is use the pages.xml to require HTTPS, but that results in one non-secure request then a redirect to the secure request. So its pointless in this case.
I reviewed a JIRA (http://jira.jboss.com/jira/browse/JBSEAM-741) where this was talked about and it appears that for now the Seam team is holding off supporting a scheme attribute in the link/form tags.
It has me thinking there is a security concern with doing this sort of thing (submitting a non-secure form to a secure URL) and that perhaps I should just avoid having the convenient login box on the home page.
Any feedback is very much appreciated.
Thanks,
Mark
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039550#4039550
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039550
19 years
[Security & JAAS/JBoss] - JAAS integration w/ 3rd party webservice stack
by saspad
Hi,
I am using Axis2/rampart webeservice/security stack. The rampart module of Axis2 will perform WS-Security logistics. However, it knows nothing about how to integrate with the container's security infrastructure. Therefore, if rampart presents me with a userid/password from processing webservice security headers, I would like to be able to hand it over to the JBoss security infrastructure and let it perform JAAS authentication with the configured security domain. It looks as easy as doing the following:
Context securityCtx = InitialContext iniCtx = new InitialContext();
securityCtx = (Context) iniCtx.lookup("java:comp/env/security");
SubjectSecurityManager securityMgr = (SubjectSecurityManager)
securityCtx.lookup("securityMgr");
Principal principal = new SimplePrincipal(username);
Subject subject = new Subject();
if (securityMgr.isValid(principal, credentials, subject)) {
// success
}
Is that all there is? If success then I should be able to use the JAAS subject that will have been populated by the configured loginModules.
I need to investigate JBoss's own webservice stack, JBossWS. Any comparison between JBossWS and Axis2 would be appreciated. Anyway, I'm guessing JBossWS does would need to perform similar actions for WS-Security integration into the JBoss JAAS framework. Is this what they do? Can someone point me to the integration code? I want to do something portably.
Thank you for any insight.
-Tony
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039546#4039546
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039546
19 years
[Management, JMX/JBoss] - Re: jboss JMX notification type
by dimitris@jboss.org
Simple:
According to the JMX spec, handleNotification(..) is the method that should be implemented by NotificationListeners.
The ListenerServiceMBeanSupport base class however, in order to implement the "dynamic" notification subscription feature (when doing subscribe(true)), it needs to monitor the registration/unregistration of mbeans in the mbean server and apply the subscription criteria.
So it overrides the handleNotification() method in the baseclass to intercept, act upon, and remove, those notifications, before passing on the call to the handleNotification2() method, that you are supposed to implement.
It just occurred to me I could have probably implemented it differently, by forking a seperate notification listener, but thats history now :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039540#4039540
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039540
19 years