Greg Pagendam-Turner
Greg Pagendam-Turner

Reputation: 2502

unable to resolve class org.apache.shiro.grails.ConfigUtils

I've upgraded my grails shiro plugin and now get the following error:

unable to resolve class org.apache.shiro.grails.ConfigUtils

using grails 2.4.3 with shiro plugin: 1.2.1

I'm guessing ConfigUtils has been deprecated at some point but I've been unable to find a guide that describes what I need to do with the latest Shiro.

I found the following in the Shiro plugin source:

security.shiro.filter.config option is deprecated. Use Grails' bean property override mechanism instead.

But I have no explanation to what this means.

Upvotes: 2

Views: 178

Answers (1)

strangefreeworld
strangefreeworld

Reputation: 149

Using (this)[http://docs.grails.org/2.4.3/guide/spring.html#propertyOverrideConfiguration] as a template, maybe something like this:

security {
    shiro {
        plugin {
            config {
                myKey = "myValue"
            }
        }
    }
}

I have only used things like this to inject values into controllers and strings, not to set config parameters, the pattern fits however.

Upvotes: 1

Related Questions