Aha, I actually wasn't using ShiroFilter I was just using a standard Filter. Is there some doc on implementing a ShiroFilter?
On 16/05/2012 21:19, Jared Bunting-2 [via Shiro User] wrote: > If you're using ShiroFilter, the SecurityManager should always be > available within that filter, any filters registered in shiro, and any > subsequent servlets. What does your filter look like, and how is your > application configured? > > -Jared > > On Wed 16 May 2012 02:09:38 PM CDT, tarka wrote: > > > Hi, My question is pretty much in the title! I am trying to implement a > > filter that redirects users based on their role but not surprisingly > I am > > getting an error message stating that No SecurityManager is > accessible to > > the calling code when I try to retrive the current users role. > > > > How would I go about making the SecurityManager available? > > > > -- > > View this message in context: > http://shiro-user.582556.n2.nabble.com/Making-Security-manager-accessible-in-Filter-tp7562478.html > > Sent from the Shiro User mailing list archive at Nabble.com. > > > > > ------------------------------------------------------------------------ > If you reply to this email, your message will be added to the > discussion below: > http://shiro-user.582556.n2.nabble.com/Making-Security-manager-accessible-in-Filter-tp7562478p7562488.html > > > To unsubscribe from Making Security manager accessible in Filter, > click here > <http://shiro-user.582556.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7562478&code=aW5mb0B0YXJrYS50dnw3NTYyNDc4fC0xNjQ5ODA1ODk5>. > NAML > <http://shiro-user.582556.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > > -- View this message in context: http://shiro-user.582556.n2.nabble.com/Making-Security-manager-accessible-in-Filter-tp7562478p7562493.html Sent from the Shiro User mailing list archive at Nabble.com.
