Results 1 to 1 of 1

Thread: configure ipRestrictions

  1. #1
    Join Date
    Apr 2011
    Posts
    4

    Default configure ipRestrictions

    Hello,
    I'm using plugin spring-security-core v1.1.2 with my grails application. When I configure iprestriction with config file like this:
    grails.plugins.springsecurity.ipRestrictions = [
    'url': '192.168.128.129'
    ]
    it works fine.
    But I want to configure restrictions at run-time. How I can do this?

    Solution is:
    def ipAddressFilter //will be injected
    ...
    def filterMap = ['url':'192.168.0.1', 'url1':'192.168.0.2']
    ipAddressFilter.setIpRestrictions(filterMap)
    Last edited by 17dufa; May 23rd, 2011 at 04:04 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •