spring-security

Spring security ACL, @Secured annotations

Hi guys, I currently running into trouble with spring security, I have been following the two last tutorials referenced on the spring security article page Methods secured with the org.springframework.security.access.annotation.Secured don't seem to trigger any Spring Security logic. This is my test file: public class AclServiceTest...

spring http-basic

may i know can we specify url for http-basic so that only authenticate if go to particular page? example login.jsp ? i do not want to use form login. ...

spring security 2 integrate with keberos example

any spring-security 2 integration with keberos example? ...

Which password encoder for Spring Security's DaoAuthenticationProvider: MD5 or SHA-256?

Title says is it all. Is there any real difference between the two? ...

Is it possible to use a different Spring Security AuthenticationProvider in different servlets, same WAR?

I have a single WAR that runs two servlets. One provides AMF remoting to Flex clients and other SOAP/HTTP to web service clients. I currently have Spring Security configured to authenticate the Flex clients using DaoAuthenticationProvider. However, I'd like to use a different authentication provide for the SOAP/HTTP. Possibly basic a...

Spring ldap multiple group bases in authoritiespopulator

Is there any way in Spring to set it up such that an authoritiespopulator will look in more than one location? <bean id="authoritiesPopulator" class="org.springframework.security.ldap.populator.DefaultLdapAuthoritiesPopulator"> <constructor-arg ref="contextSource" /> <constructor-arg value="CN=Users" /> <property name="group...

Linux command line SHA-256 hash different from online tools?

I was looking for a quick way to compute the SHA-256 hash of a password so I could upload some test data into a database that we are using Spring Security to authenticate against. First I found the linux utility sha256sum and ran it again the password "admin" and got this result: fc8252c8dc55839967c58b9ad755a59b61b67c13227ddae4bd3f78a3...

Spring MVC and Spring Security limit quota requests per IP

Is there a way to limit the number of requests that a user can make in a period of time? Ex: max 200 requests per minute. My environment is Apache Tomcat 7.0 with APR libraries, Spring MVC 3, and Spring Security 3. That feature can be a Tomcat configuration or a Spring configuration. Any suggestions? ...

How to restrict folder access in asp.net

How to restrict folder access in asp.net like i dun want any other to see my Uploads folder in browser by link http://www.myweb.com/Uploads Please help ...

Spring Sequriry - CouchDB

I want to write Authorization used the Spring Security.. Users data will be save in the couchDB.. I have problem with make it possible access to metods.. @PreAuthorize("hasAuthority('ROLE_ADMIN')") @Transactional public void deleteDriver(Driver driver) { dataService.deleteDrivers(driver); }.. .. This annotation(@...

Custom "Next" Buttons for Spring MVC AbstractWizardFormController

Currently, a spring application I am working on has several wizards that it is using with Spring's AbstractWizardFormController. During the early stages of development(pre-design phase), the type of "next" button did not matter. Just to refresh, the Next and Back button are submit buttons with target attributes. So a next button on the ...

Unable to retrieve security context from within Spring-Jersey

Hello all, I am trying to retrieve a security context within my spring-jersey bean, however I keep getting Null authentication. When I run the same command from within my spring application it correctly retrieves the current logged in users security context. The configuration of spring-jersey requires creating a separate servlet to the...

What's the difference between @Secured and @PreAuthorize in spring secu 3 ?

Hello, It's not clear for me what is the difference in spring security between : @PreAuthorize("hasRole('ROLE_USER')") public void create(Contact contact) And @Secured("ROLE_USER") public void create(Contact contact) I understand PreAuthorize can work with spring el but in my sample, is there a real difference ? Thanks ...

Using Tomcat NTLM with Spring Security

Hi. I'm using Spring Security 2 with Spring MVC. The tomcat container I will be using already has NTLM support and will provide access to only authenticated users, before forwarding their username in the header of the request. I tried writing a custom AutenticationEntryPoint with the idea that no form/ http-basic login would be required...

Authentication using LDAP against ADAM using spring security

I am trying to get a Java app using spring-security to talk to a local ADAM instance that I have setup. I have successfully installed ADAM and setup as follows.... Instance running on localhost:389 Root is O=Company A child called OU=Company Users (orgnizationalUnit) A granchild called CN=Mike Q (user) uid = mike and password = welc...

Spring Security integration with Facebook Connect

Spring Security for us uses an email as the username and a password. To log someone in through code I call: securityContext.setAuthentication(objectWithUsername); How do I then allow facebook connect users to login who don't have an email or password with us? I can't call the above method because it requires a username. ...

Why use the j_username and SPRING_SECURITY_LAST_USERNAME variables?

Why do this? <input type="text" name="j_username" value="${SPRING_SECURITY_LAST_USERNAME}"> instead of this? <input type="text" name="username" value=""> What's the value of the j_username and SPRING_SECURITY_LAST_USERNAME variables? ...

Why would a Spring login form not reveal any error information for a failed login?

My Spring MVC app is not allowing any logins and I can't figure out why. I've added logging to the Login Controller but nothing is being outputted there. The login page just seems to automatically redirect to the error page without going through the Login Controller. Any ideas how to debug this problem? <http auto-config="false" acce...

OAuth for Spring Security - Howto implement resource declaration

I am trying and understand the next steps I have to take starting from the reference application at http://svn.codehaus.org/spring-security-oauth/trunk/sparklr/ in order to create my own implementation. What I do not understand is where and how to declare dynamic resources for Oauth. In the reference app, resources are hard coded withi...

Grails / Spring Security LDAP: alternate check method

Hi there, I've been wondering if there's a way to configure Spring Security LDAP plugin to perform the authentication not in the standard way but as follows: If one is able to connect and login to the LDAP server then the user is authenticated. Read the authorization from this user's account on LDAP (this is probably the default be...