29,158 questions
7
votes
2
answers
4k
views
How can I determine what roles are required to access a URL with Spring Security?
I'm using Spring Security to secure a webapp. The URLs are secured like this:
<security:http entry-point-ref="authenticationEntryPoint">
<security:intercept-url pattern="/" access="...
21
votes
3
answers
26k
views
Creating a custom authentication with Acegi/Spring Security
I'm having trouble discovering exactly what I need to implement in order to use a custom authentication method with my web application using Spring Security. I have a Grails application with the ...
187
votes
13
answers
196k
views
Unit testing with Spring Security
My company has been evaluating Spring MVC to determine if we should use it in one of our next projects. So far I love what I've seen, and right now I'm taking a look at the Spring Security module to ...
4
votes
1
answer
11k
views
Acegi Security: How do i add another GrantedAuthority to Authentication to anonymous user
i give users special URL with access key in it. users accessing the public page via this special url should be able to see some additional data as compared to simple anonymous user.
i want to give ...
306
votes
18
answers
187k
views
When using Spring Security, what is the proper way to obtain current username (i.e. SecurityContext) information in a bean?
I have a Spring MVC web app which uses Spring Security. I want to know the username of the currently logged in user. I'm using the code snippet given below . Is this the accepted way?
I don't ...
16
votes
4
answers
24k
views
Integrating Captcha with Spring Security
What is appropriate way to integrate SpringSecurity with Capcha ?
I have following use case :
When user will tries to login, if we he failed to login N times, captcha will be displayed, so ...
42
votes
5
answers
47k
views
Spring security: adding "On successful login event listener"
I'm new to Spring Security. How do I add an event listener which will be called as a user logs in successfully? Also I need to get some kind of unique session ID in this listener which should be ...
5
votes
1
answer
1k
views
Grails - Acegi: Customize Authentication Method
I want to change the authentication process that is used by the Acegi - Plugin. It should be a completely customized process. Custom login form + custom auth method.
Obviously there is only little ...