Shiro
  1. Shiro
  2. SHIRO-221

Allow Shiro Filters to be enabled or disabled with a config property

    Details

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

      Description

      It is much more convenient to be able to enable or disable a filter in Shiro's [filters] (aka 'filter chain definitions') configuration based on a config property rather than actually removing it from a filter chain.

      For example, it would be much more convenient to turn on or off Shiro's SSL filter via configuration than to have to to mess with a <security-constraint> definition in web.xml. E.g. in development, you want SSL disabled, but in production it must be enabled - it is a real pain to try to do this in the build with Maven filtering for example because it messes with the IDE's ability to use that same web.xml file for embedded web deployments.

      The Shiro Filter property configuration approach is much more flexible and can even be controlled at runtime if desired.

        Activity

        Les Hazlewood made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Les Hazlewood added a comment -

        Closing with the 1.2.0 release.

        Show
        Les Hazlewood added a comment - Closing with the 1.2.0 release.
        Les Hazlewood made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Les Hazlewood added a comment -

        Implemented and documented. Reopen if necessary.

        Show
        Les Hazlewood added a comment - Implemented and documented. Reopen if necessary.
        Les Hazlewood created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development