-
1. Re: Login.jsp
rashmi_setty Dec 5, 2006 10:05 PM (in response to mmontoni)Hi,
Create a page and modify its security such that only logged in user can view that page.Then click on root in Management portlet.Select the default page as the page u have created.IF you access htpp://localhost:8080/portal it will open login page. -
2. Re: Login.jsp
theute Dec 6, 2006 2:31 AM (in response to mmontoni)Well you could also secure /* instead of auth/* in the jboss-server.war/WEB-INF/web.xml file
-
3. Re: Login.jsp
mmontoni Dec 6, 2006 4:08 PM (in response to mmontoni)Thanks guys,
I followed a wiki I found for JBoss Portal 2.0 and changed in jboss-portal.sar/portal-server.war/web-inf/web.xml. It worked but did I do it right? I am trying to integrate Acegi on it...I did it on portal-server.war but I can't get the login.jsp to show up anymore....I wonder if I should redo everything under jboss-portal.sar.
Thanks!
Mariella. -
4. Re: Login.jsp
h.cahyadi Feb 1, 2007 12:28 AM (in response to mmontoni)Hi portal geek, I am facing problem same with your problem to change the default login.jsp have you already solved your problem? if yes, can you tell me how? thanks before
regards,
-haric- -
5. Re: Login.jsp
antoine_h Apr 24, 2007 12:37 PM (in response to mmontoni)A way to do it is :
- let the portal do the process of authentification, as it is, with the login.jsp etc...
- just change the login module (or add a new one) with the acegi login module for jboss (don't remember the exact class name, in the adapter provided with acegi)
this way, you have a principal setup by the portal, that is a Authentication class from acegi
the portal works fine with it (it just need the name of the Principal...).
this mean : not using the Acegi authentification process... if you don't really need it.
you have the "Acegi Principal" as a result, but don't touch the login process.
If you really need it : this should not be such a problem, with replacing this process instead of the tomcat/servlet one that is in portal-server.war.
after, to use Acegi security stuff, just add two filters : the httpsessionintegration... (the first one), to have the context holder setup in the session, and the jboss filter provided with acegi, to have jboss set up with this principal.
add these in the portal-server web app.
it works fine...
I will add these thing to the yet existing wiki. but I want to finish my integration before to write some explaination.