This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Security and the fly likes Spring Security-- How to add/ remove  authorities of  the user after he logs in. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Spring Security-- How to add/ remove  authorities of  the user after he logs in." Watch "Spring Security-- How to add/ remove  authorities of  the user after he logs in." New topic
Author

Spring Security-- How to add/ remove authorities of the user after he logs in.

Vivek Alampally
Ranch Hand

Joined: Jul 10, 2008
Posts: 67
Hi All,
I am working on Spring security now. What it does is while the user logs in, at that time only it loads all the authorities which belong to that user. So my question is
How can we change(add/remove) the authorities of the user while in session. Dumb solution is add authority to the user and make him log out.
But I want a better solution without making a redirect to login page.


Thanks,
Vivek.
Vivek Alampally
Ranch Hand

Joined: Jul 10, 2008
Posts: 67
I will be posting this in Official Spring forum.


Thanks,
Vivek
Vivek Alampally
Ranch Hand

Joined: Jul 10, 2008
Posts: 67
The solution for this issue can be found at http://forum.springsource.org/showthread.php?109288-Spring-Security-How-to-add-remove-authorities-of-the-user-after-he-logs-in.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Security-- How to add/ remove authorities of the user after he logs in.