Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Acegi Login Problem

 
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
kranthi chamarthi
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It would give a normal human mental abilities to rival mine. To think it is just a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!