• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help in spring security process

 
Mukhi Vla
Ranch Hand
Posts: 53
  • 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: 53
  • 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 ....
 
Nathan Pruett
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: 53
  • 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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic