Wednesday, November 4, 2009

basic http auth with Shiro in Grails

A quick note:

I found a blog nice simple recipe for basic http auth using Shiro in Grails. However, since this was published, JSecurity has been renamed Apache Shiro and so some minor changes need to be made at the end of the blog.

I posted them as a comment to that page but will repeat them here for good measure:

the last additions to Config.groovy when using Shiro should be:
security.shiro.filter.config = """
authcBasic = org.apache.shiro.web.filter.authc.BasicHttpAuthenticationFilter
authcBasic.applicationName = Demo app name
/rest/** = authcBasic


abc said...

Hi Richard,
Thx for posting this, the original link is broken hence could not gather more info..
It would very benefical if I find some info for the smae

Richard said...

Thanks for alerting me to this.

The waybackmachine has made a copy at:

abc said...

Thank You posting the link
i was able to browse the article