See #12238 for background. Adding configurer beans would seem sensible since we support mocked security.