Spring Security
  1. Spring Security
  2. SEC-924

Implement automatic injection of namespace created RememberMeServices into custom AbstractProcessingFilter based beans.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.0.4
    • Component/s: Core, Namespace
    • Labels:
      None

      Description

      The setting of the rememberMeServices member field to use a NullRememberMeServices should be delayed until initialization of the bean, so that the property is still null when the RememberMeServicesInjectionPostProcessor comes to examine it. This will give it a chance to inject the RememberMeServices bean into the filter. Users who don't want this behaviour will be able to inject a NullRememberMeServices bean directly.

        Activity

        Hide
        Luke Taylor added a comment -

        I've moved the initialization of the rememberMeServices field to the afterPropertiesSet method, when it will be assigned a NullRememberMeServices if it is null.

        Show
        Luke Taylor added a comment - I've moved the initialization of the rememberMeServices field to the afterPropertiesSet method, when it will be assigned a NullRememberMeServices if it is null.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: