« Return to Thread: CAS Client Plugin Doesn't Respect error.gsp

Solution [Re: CAS Client Plugin Doesn't Respect error.gsp]

by oakridge :: Rate this Message:

Reply to Author | View in Thread

I added the following to UrlMappings.groovy and it works now:

"500"(view:"error.gsp")

A Side note: it would be nice if one could declare URLs that the cas-client plugin shouldn't restrict.  I say this because I have a lot less URLs that need to be publicly accessible versus ones that need to be locked down.

**Scratch the last complaint, I fixed it with this:

cas.urlPattern = '/secure/*' in Config.groovy

- and -

static mappings = {
        "/secure/$controller/$action?/$id?"()
}
in UrlMappings.groovy

Man, I love Grails!

Thanks this plugin is easy and well done.

 « Return to Thread: CAS Client Plugin Doesn't Respect error.gsp