Hi

I'm using the Grails Shiro Plugin in my Grails Project and I'm having
trouble to wiring my own SessionListener to the shiroSecurityManager to keep
track of who logins in:

my resources.groovy:
beans =
{
  myShiroSessionListener(MySessionListener)  {
  }
}


This is my bootstrap:

class BootStrap
{
  def init =
  {servletContext ->
    def ctx =
servletContext.getAttribute(ApplicationAttributes.APPLICATION_CONTEXT)
    def shiroSecurityManager = ctx.getBean('shiroSecurityManager')
    def myShiroSessionListener = ctx.getBean('myShiroSessionListener')
    shiroSecurityManager.add(myShiroSessionListener)
  }
}

The application starts up fine but my listener is never called. Any
suggestions?

Btw: Is the listener supposed to be called when a user logs in via
rememberMe cookie?
-- 
View this message in context: 
http://n2.nabble.com/Wiring-a-SessionListener-in-a-Grails-Application-tp4542495p4542495.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to