> I've created a new grails project .... installed the shiro plugin ... and
> it's mostly working ... no source, for now.

Mostly working sounds good... or bad... depends on your schedule and
the blood pressure of your manager, I guess :-)

> I just need to figure out how I had it filtering every request and if not an
> authenticated user, going to the controller "public" and action "index".
>
> I have the Filter that worked, but somehow it's not configure properly to
> work now, but at least no more dreaded stack traces.

Well, the classic grails plugin way to do this is something along the lines of:

// grails-app/conf/SecurityFilters.groovy

class SecuirtyFilters {

    def filters = {

        // require authentication for all controllers, except
        // 'auth', 'home', and 'help'
        auth(controller: '*', action: '*') {
            before = {
                switch (controllerName) {
                    case 'auth':
                    case 'help':
                    case 'home':
                        return true
                }

                accessControl { true }
            }
        }

        // more filters here ...

    }

}


HTH

Cheers,
DJ

Reply via email to