I am developing a site and i am trying to use roller for blogs section.Roller 4.0 is a open source blog that is implemented using struts2,acegi,hibernate. Now i am having a link called blogs in my site, clicking on which will open a new window and takes the user to url "http://localhost:8080/roller/roller-ui(Roller's login page)". Now i dont want the user who already logged into my site to be prompted for credentials again for roller.I want to bypass the roller's login page in other words i want the login action to be performed when the user clicks on the blogs link in my site with my site's credentials. For that to happen i need to pass mysite's user name and password along with the url. But the problem is roller is using acegi for its login and i am not able to make out how to pass parameters for it. I am new to spring, after searching in google and studying about acegi i came to know that it involves Filter chain. Following is the filter chain of the application.
I posted the problem in the roller forum but i didint get any reply.So i am posting here.What should i do to incorporate the required change.Please advise me. Thanks Kranthi
No replies until now!!! Probably i haven't explained my problem clearly.
Thing is while performing a normal login in a web application say Login is
Now in the ActionClass which is pointed by someAction.do we get the username and password as formbean.getUserName,formbean.getPassword. This is the normal case. Now the following is the roller login page which uses the acegi mechanism for login
I searched for roller_j_security_check in security.xml and found that it points to authenticationProcessingFilter.
Now I am trying to use this blogs in my site(my site will be having a link called blogs).Clicking on the link now takes the user to the roller login page. I can maintain the same credentials for both roller database and my sites database by inserting into the roller database the same credentials with which the user registers for my site.What i want to do is i want to bypass the roller login page and i want to supply my site's credentials to the class pointed by roller_j_security_check so that validation is performed and the user is directly taken to the roller's post login page. How to pass the credentials to authenticationprocessing filter. Thanks Kranthi
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop