Changeset 147 for trunk/grails-app/conf/SecurityConfig.groovy
- Timestamp:
- Oct 8, 2009, 7:58:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/SecurityConfig.groovy
r145 r147 3 3 def authenticateService 4 4 5 // see DefaultSecurityConfig.groovy for all settable/overridable properties5 // See DefaultSecurityConfig.groovy for all settable/overridable properties 6 6 7 7 active = true … … 14 14 authorityDomainClass = "Authority" 15 15 16 // Required if we want to run "grails generate-manager"17 // Which recreates the controller and views, so save the views!16 // Required if we want to run "grails generate-manager" 17 // Which recreates the controller and views, so save the views! 18 18 // requestMapClass = 'Requestmap' 19 19 20 // The whole application relies on controllerAnnotations and the static rules bellow. 20 21 useRequestMapDomainClass = false 21 22 useControllerAnnotations = true 22 23 23 // Set true especially if used across the internet.24 // Set true especially if used across the internet. 24 25 forceHttps = 'false' 25 26 26 // Pessimistic locking, deny access to all URLs that don't27 // have an applicable URL-Role configuration.28 // This forces us to set an annotation, static rule or29 // extend BaseController and prevents accidentally leaving pages open.27 // Pessimistic locking, deny access to all URLs that don't 28 // have an applicable URL-Role configuration. 29 // This forces us to set an annotation, static rule or 30 // extend BaseController and prevents accidentally leaving pages open. 30 31 controllerAnnotationsRejectIfNoRule = true 31 32 // Static rules for controllers, actions and urls.33 // Since we are using pessimistic locking we have to set some things34 // here but most security should be set in the controllers.32 33 // Static rules for controllers, actions and urls. 34 // Since we are using pessimistic locking we have to set some things 35 // here but most security should be set in the controllers. 35 36 controllerAnnotationStaticRules = [ 36 37 '/': ['IS_AUTHENTICATED_FULLY'], … … 39 40 '/images/**': ['IS_AUTHENTICATED_ANONYMOUSLY'], 40 41 '/js/**': ['IS_AUTHENTICATED_ANONYMOUSLY'], 41 '/plugins/**': ['IS_AUTHENTICATED_FULLY'], 42 // '/plugins/help-balloons-1.2/**': ['IS_AUTHENTICATED_FULLY'], 43 // '/plugins/richui-0.6/**': ['IS_AUTHENTICATED_FULLY'], 44 // '/plugins/navigation-1.1/**': ['IS_AUTHENTICATED_FULLY'], 45 // '/plugins/filterpane-0.6.2/**': ['IS_AUTHENTICATED_FULLY'], 46 // '/plugins/calendar-1.2.0-SNAPSHOT2/**': ['IS_AUTHENTICATED_FULLY'], 47 // 48 // '/plugins/class-diagram-0.3/**': ['IS_AUTHENTICATED_FULLY'], 49 // '/classDiagram*': ['IS_AUTHENTICATED_FULLY'], 50 // '/classDiagram/**': ['IS_AUTHENTICATED_FULLY'], 42 '/plugins/**': ['IS_AUTHENTICATED_FULLY'], 43 '/classDiagram*': ['IS_AUTHENTICATED_FULLY'], 44 '/classDiagram/**': ['IS_AUTHENTICATED_FULLY'], 51 45 '/login*': ['IS_AUTHENTICATED_ANONYMOUSLY'], 52 46 '/login/**': ['IS_AUTHENTICATED_ANONYMOUSLY'], … … 55 49 ] 56 50 57 //We always want to go to the home page so that bookmarks are not used. 51 // Always call the welcome action so that bookmarks are not used, a 52 // welcome message can be populated and the sessionTimeout can be set. 58 53 defaultTargetUrl = '/appCore/welcome' 59 54 alwaysUseDefaultTargetUrl = true 60 55 61 // User caching, turned this off so that password changes take effect.62 // It would appear that user is still in the session as logout/login56 // User caching, turned this off so that password changes take effect. 57 // It would appear that user is still in the session as logout/login 63 58 // is still required for role changes to take effect. 64 // If this option causes high database load try:59 // If this option causes high database load try: 65 60 // import org.acegisecurity.providers.dao.DaoAuthenticationProvider 66 61 // import org.acegisecurity.context.SecurityContextHolder … … 71 66 cacheUsers = false 72 67 73 // // List for andevents and run the closure(s) that follow.74 // // Unfortunately the session is not available yet so many things can't be done here, us andefaultTargetUrl and controller.68 // // Listen for events and run the closure(s) that follow. 69 // // Unfortunately the session is not available yet so many things can't be done here, use a defaultTargetUrl and controller. 75 70 // useSecurityEventListener = true 76 71 //
Note: See TracChangeset
for help on using the changeset viewer.