| Author |
need help in spring security process
|
Mukhi Vla
Ranch Hand
Joined: Apr 22, 2010
Posts: 50
|
|
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
Joined: Apr 22, 2010
Posts: 50
|
|
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
Joined: Oct 18, 2000
Posts: 4121
|
|
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.
|
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
|
 |
Mukhi Vla
Ranch Hand
Joined: Apr 22, 2010
Posts: 50
|
|
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.
|
 |
 |
|
|
subject: need help in spring security process
|
|
|