-
1. Re: org.jboss.web.tomcat.security.login.WebAuthentication class in Jboss 7
userdark Aug 30, 2011 10:45 AM (in response to jean.baldessar)I guess u could look at the source code of one of the login modules to figure out how to authenticate and register the session programmatically, but that seems like alot of work. I have the same question. Is there any replacement currently or planned?
-
2. Re: org.jboss.web.tomcat.security.login.WebAuthentication class in Jboss 7
anil.saldhana Aug 30, 2011 12:26 PM (in response to userdark)Servlet3 has a new programmatic web login available that makes the old WebAuthentication class redundant.
-
3. Re: org.jboss.web.tomcat.security.login.WebAuthentication class in Jboss 7
mmoyses Aug 30, 2011 12:32 PM (in response to userdark)1 of 1 people found this helpfulSee https://raw.github.com/jbossas/jboss-as/master/testsuite/spec/src/test/java/org/jboss/as/test/spec/servlet3/WebSecurityProgrammaticLoginTestCase.java and https://raw.github.com/jbossas/jboss-as/master/testsuite/spec/src/test/java/org/jboss/as/test/spec/servlet3/LoginServlet.java for examples.
-
4. Re: org.jboss.web.tomcat.security.login.WebAuthentication class in Jboss 7
userdark Aug 30, 2011 2:20 PM (in response to mmoyses)Exactly what I needed. Thanks to both of you.
-
5. Re: org.jboss.web.tomcat.security.login.WebAuthentication class in Jboss 7
jean.baldessar Sep 2, 2011 2:49 PM (in response to jean.baldessar)Thanks. Exactly what I needed too
-
6. Re: org.jboss.web.tomcat.security.login.WebAuthentication class in Jboss 7
lholmquist Oct 17, 2011 11:54 AM (in response to mmoyses)Has this repo been moved to something else, i get a 404 error when trying to access. btw, github.com's 404 error page is awesome
-
8. Re: org.jboss.web.tomcat.security.login.WebAuthentication class in Jboss 7
lholmquist Nov 10, 2011 10:38 AM (in response to bigsky2304)Thanks
-
9. Re: org.jboss.web.tomcat.security.login.WebAuthentication class in Jboss 7
method_ben_qc Nov 30, 2011 10:10 AM (in response to bigsky2304)I get a 404 error when trying to access :-(
Anyone can provide the new link ?
-
10. Re: org.jboss.web.tomcat.security.login.WebAuthentication class in Jboss 7
lholmquist Dec 1, 2011 8:46 AM (in response to method_ben_qc)try that one. i just went back in the commit history on github to get it. its from november 10th, so hopefully the code hasn't been updated since then
-
11. Re: org.jboss.web.tomcat.security.login.WebAuthentication class in Jboss 7
garfield335 Jan 16, 2013 4:30 AM (in response to jean.baldessar)Hello everybody.
I have an Java Application developped running on Jboss6. I just made a few changes an try recompile and try now to deploy on Jboss 7.1 final.
The Application use Java Servlet 2.5 and JSF 1.2.
It does not compile
import org.jboss.web.tomcat.security.login.WebAuthentication;
private WebAuthentication webAuthentication = new WebAuthentication();
public void login(String username, String password) throws LoginException{
if (webAuthentication.login(username, password)) {
logger.info("Logged in successfully: userPrincipal: " + getUserPrincipal() + " remoteUser: " + getRemoteUser());
}
else {
webAuthentication.toString();
logger.info("Login failed");
throw new LoginException();
}
}
How to change this peace of code that it still works on Jboss7?