Re error.gsp, good point I will look into that to see if it could be done nicely as you suggested.
The 'cas.urlPattern' is defined and used by the underlying cas java client and the plugin doesn't do any heavy-lifting to match more advanced needs. Your solution is excellent and would you mind I post that to the cas client plugin page so that other people can share your experience?
Chen
oakridge wrote:
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.