nerdErg / grails-shiro

Grails 3 & 4 Shiro plugin
Other
7 stars 8 forks source link

invoke method on the interceptor class, not the metaClass class #6

Closed animator013 closed 5 years ago

animator013 commented 5 years ago

As i am upgrading my grails apps to this plugin i stumbled upon this issue. Whenever my onNotAuthenticated method is in the interceptor class I get an exception that onNotAuthenticated method cannot be invoked on ExpandoMetaClass.

I think we should omit the metaClass.

pmcneil commented 5 years ago

that needs a test :-)

animator013 commented 5 years ago

added test :)

pmcneil commented 5 years ago

Nice