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

Initialize Shiro using a <listener> in web.xml

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: