Ignore:
Timestamp:
Mar 12, 2012, 12:16:52 PM (11 years ago)
Author:
work@…
Message:
  • adding support for programmatic logins using the 'hello' method in the restController over http basic authentication.
  • e.g. /rest/hello?consumer=myConsumerId
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/Config.groovy

    r2179 r2180  
    109109grails.plugins.springsecurity.successHandler.targetUrlParameter = 'spring-security-redirect'
    110110
     111// Spring Security configuration
     112grails.plugins.springsecurity.useBasicAuth = true
     113grails.plugins.springsecurity.basic.realmName = "Authentication Required"
     114grails.plugins.springsecurity.useSessionFixationPrevention = true
     115grails.plugins.springsecurity.filterChain.chainMap = [
     116        '/rest/hello': 'JOINED_FILTERS,-exceptionTranslationFilter',
     117        '/**': 'JOINED_FILTERS,-basicAuthenticationFilter,-basicExceptionTranslationFilter'
     118]
     119
    111120// Needed for the (copy of) the Spring Security UI plugin
    112121grails.mail.default.from = 'gscf@dbnp.org'
Note: See TracChangeset for help on using the changeset viewer.