Uploaded image for project: 'Spring Security'
  1. Spring Security
  2. SEC-1225

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: 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 Luke Taylor added a comment -

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

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: