I'm having problems trying to logout from my application, when I press the logout button in my application it shows me the login page again, but if write in the search bar in my browser I can go to any page in my application without having to login again, it seems that when I press the logout link I don't logout at all.
here are my mave dependencies
I'm using FreeMarkes as my template engine and I use this expression to have access to Jsp Security Tags.
here is my login controller:
And here is my spring security configuration, I'm using a java configuration and no XML
and my AutProvider class
and here is how I call the logout link in my page
I tried changing to but when I do this it says 404 not found.
Arun Kumarr wrote:Why is your logout coming via login?
What are you intending to do in this code - "login/login?logout"
here is my controller that would handle that path
this works but i return the same login page that i have, i did this because when i try to map the same path form my logoutUrl and successLogOutUrl i get a loop errror because i think that i can't use the same url for both
here is my actual secuirty configuration
i created a logOut page that is a exact copy of my login page, because when i use /login/login?logout it works i see the login page again but i'm not logout at all, i can put any direction in my search bar and i will go there without having to login.
that's why i created a exact copy of my login page but i think it shouldn't be like that, since all the examples i had whatched they use this login?logout url.
Thanks for the info you posted it helped me to understand betterr the **/ notation