--
You received this message because you are subscribed to the "Groovy Users of Minnesota" group.
To post to this group, send email to groo...@googlegroups.com
To unsubscribe from this group, send email to groovymn-u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/groovymn?hl=en
I've found it to be pretty easy to use BASIC auth with the JSecurity
plugin and with the Spring Security plugin. At the bottom of
Authentication plugin docs at
http://www.grails.org/Authentication+Plugin it says that BASIC auth is
not yet implemented for that plugin.
Scott
-------------------------------------------------
Scott Vlaminck // sc...@refactr.com
Refactr LLC // http://refactr.com
mobile // 612-386-9382
-------------------------------------------------
That is what I was afraid of. It is a corporate application and I
really did not want to rip out the current security mechanism and try to
implement Spring Security for the little thing I was attempting to do.
I investigated what it would take and it would involve schema
change/table migration. I was hoping to essentially bolt on Basic Auth
to the security it currently has.
Perry
<code>
def auth = request.getHeader('Authorization')
if (!auth) {
response.addHeader("WWW-Authenticate", "Basic
realm=\"Your Realm\"")
response.sendError(401, "Authorization required")
return false
If you use Josh's code, you shouldn't need to swap out anything in
your app, except adding a filter to retrieve the BASIC auth
credentials. With those, you should be able to just call
authenticationService.login(login, pass), which is provided by the
Authentication plugin.
Scott
-------------------------------------------------
Scott Vlaminck // sc...@refactr.com
Refactr LLC // http://refactr.com
mobile // 612-386-9382
-------------------------------------------------