Class SecurityConfig

java.lang.Object
uk.ac.manchester.spinnaker.alloc.security.SecurityConfig

@EnableWebSecurity
@Role(0)
@EnableGlobalMethodSecurity(prePostEnabled=true)
public class SecurityConfig
extends Object
The security and administration configuration of the service.

Note: role expressions (IS_USER and IS_ADMIN) must be applied (with @PreAuthorize) to interfaces of classes (or methods of those interfaces) that are Spring Beans in order for the security interception to be applied correctly. This is the only combination that is known to work reliably.

Author:
Donal Fellows