Hi,
On a side project I recently integrated [1] lift shiro to
authentication / authorization. It has some neat features, and while
getting it (well, apache shiro[2] ) to work nicely with a database
based login was quite the challenge, I know have it working, so I
could contribute it to the project.
At work we are also using apache shiro, because it allows us to easily
have LDAP and Database based login, all using the same interface. And
it has been working really well.
When it comes to how to use it, to protect a page, on your sitemap you
would add a loc like
>> RequireAuthentication >> HasRole("admin")
You can also surround some html/ snippet invocation with one of the
helpers snippets from lift-shiro, and it will display or not, based on
current roles.
On the down side, Lift's record proto user uses becrypt, which I
believe is the latest in the latest in security, but Shiro uses salted
password with SHA-256 and you can set the number of hash iterations to
run, on my application, I'm using credentialsMatcher.hashIterations =
200000 (the higher the better/safer).
But I think that we should be ok with SHA-256 for at least a couple of
years (if not more)
[1]
https://github.com/timperrett/lift-shiro
[2]
http://shiro.apache.org/
Regards,
Diego
> --
>
>
--
Diego Medina
Lift/Scala Developer
di...@fmpwizard.com
http://www.fmpwizard.com