Announcement Announcement Module
Collapse
No announcement yet.
configure ipRestrictions Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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, 04:04 AM.
Working...
X