Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-293

Initialize Shiro using a <listener> in web.xml

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: 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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: