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

ShiroFilter initialize WebEnvironment on startup

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • 2.0.0
    • None
    • None

    Description

      Following up to http://shiro-developer.582600.n2.nabble.com/Deprecation-of-org-apache-shiro-web-servlet-IniShiroFilter-td7205283.html

      I am integrating shiro into our OSGI based product. The requirement to register the WebEnvironment listener on startup is a real problem.

      ""it would be extremely easy to create a subclass of ShiroFilter that
      initializes the necessary WebEnvironment at filter startup. If you
      can't use a servlet context listener, this would be the next best
      thing and would work as expected. The EnvironmentLoaderListener is
      extremely minimal on purpose - the real work is done in the parent
      class, which can be used from a Filter easily. ""

      Attachments

        Activity

          People

            fpapon Francois Papon
            marcode Marco Descher
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m