timperrett / lift-shiro

Lift Integration with the Shiro security framework
http://blog.getintheloop.eu/2011/08/23/using-apache-shiro-with-lift/
Apache License 2.0
50 stars 32 forks source link

Add Remembered feature #4

Closed lunserv closed 13 years ago

lunserv commented 13 years ago

Add Remembered feature:

  1. test isRemembered for shiro.utils
  2. locs RequireRemembered and RequireNoRemembered for shiro.sitemap.locs This features based on subject.isRemembered() Apache Shiro. RequireRemembered content requires isRemembered or isAuthenticated status for subject. if request RequireRemembered content is direct for no isRemembered or isAuthenticated subject, then redirect to loginURL page. RequireNoRemembered content requires no isRemembered and no isAuthenticated status for subject. if request RequireNoRemembered content is direct for isRemembered or isAuthenticated subject, then redirect to indexURL page.
timperrett commented 13 years ago

Nice - I wanted to implement this but hadn't got around to it. Good stuff. Are you using lift-shiro in production? Pretty awesome :-D

lunserv commented 13 years ago

I started a new project with Lift, but I do not want to use Lift ORM. In addition, Apache Shiro very powerful, flexible and easy to use security framework. I liked the idea to integrate Lift and Apache Shiro. I added RequireRemembered for logout function menu and corrected code for previous commit. I went back style for hasAnyRoles function, but for imports my IDE(Netbeans) tells about non used imports - anyway get them back?