Spring Security
  1. Spring Security
  2. SEC-1194

Add services-alias to remember-me element and use in preference to post-processor injection

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.4, 3.0.0 M1
    • Fix Version/s: 3.0.0 M2
    • Component/s: Namespace
    • Labels:
      None

      Description

      Currently, the RememberMeServices is injected into beans which may require it by a BeanPostProcessor. Since we are now creating all the filter beans at once, and the filter chain (see SEC-2286) It would be preferable to inject the services reference at that point, and allow the internal bean to be aliased for use in externally defined filters (rather than magically injecting it). Some sort of validation post processor might make sense.

        Activity

        Hide
        Luke Taylor added a comment -

        This has been added, so if defining a custom filter which requires a link to the internal RememberMeServices, the alias approach should be used.

        Show
        Luke Taylor added a comment - This has been added, so if defining a custom filter which requires a link to the internal RememberMeServices, the alias approach should be used.

          People

          • Assignee:
            Luke Taylor
            Reporter:
            Luke Taylor
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: