Spring Security
  1. Spring Security
  2. SEC-1225

Use bean references for authentication providers to allow use of @Autowire

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0 M2
    • Fix Version/s: 3.0.0 RC1
    • Component/s: None
    • Labels:
      None

      Description

      As a result of registering the namespace-defined provider beans as inner beans, they are no longer available for autowiring which is useful for testing. It would be preferable if they were registered using generated names and added as BeanReferences to the AuthenticationManager's list of providers.

        Activity

        Hide
        Luke Taylor added a comment -

        Changed AuthenticationManagerBeanDefinitionParser to use references to top-level beans for the providers.

        Show
        Luke Taylor added a comment - Changed AuthenticationManagerBeanDefinitionParser to use references to top-level beans for the providers.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: