Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

need help in spring security process  RSS feed

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have problem in tracing the flow of login page. The application is implemented using spring security. when i hit http://localhost:8080/account/edit. It is getting redirected to http://localhost:8080/login.

I want to trace the process inbetween 'http://localhost:8080/account/edit' to 'http://localhost:8080/login'

Can anyone help me how can i trace this. please suggest me any material or tutorial.

Thanks
 
Mukhi Vla
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need this because i am passing one external parameter after /account/edit?param1=value.

I am loosing this parameter when it is redirected to /login. I want to track this paramater for further pages to display a message to user.

Please help me ....
 
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Spring Security Petclinic Tutorial should describe in general how Spring Security works - and how/why it's redirecting to /login.

I haven't tried to pass url parameters through security login before - but I guess the place to start would be the Spring Security Reference Documentation - Section 2.3.5 - Adding in Your Own Filters because you're going to have to add those parameters to the URL the filer's redirecting to.
 
Mukhi Vla
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I solved this problem.

I am getting the parameters passed by using 'SPRING_SECURITY_SAVED_REQUEST_KEY' constant. Now I am able get the parameter with the help of this constant in my login jsp page.

 
You can't expect to wield supreme executive power just because
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!