Shiro
  1. Shiro
  2. SHIRO-293

Initialize Shiro using a <listener> in web.xml

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Labels:
      None

      Description

      For a webapp, Shiro is initialized during web.xml's <filter> initialization. Before this, the <listeners> are initialized and that is the recommended place for app initialization because, for one thing, they can be gracefully aborted.

      It would be nice if Shiro would support initialization in a listener's contextInitialized() method. Perhaps a new class like ShiroServletContextListener could be added.

      Please see the following discussion:
      http://shiro-user.582556.n2.nabble.com/Webapp-initialization-happens-before-Shiro-initialization-td6345903.html

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Les Hazlewood
              Reporter:
              Dan Finkelstein
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development