• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

need help in spring security process

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
If you're gonna buy things, buy this thing and I get a fat kickback:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic