springBootStarterSecurityAutoConfiguration top-level property
- @AutoConfigurationModule(after: ['springBootStarterOauth2ClientAutoConfiguration'], platform: ModulePlatform.native)
final
The beans that switch web security on: the security filter, the
default filter chain and user, the JWT decoder from the properties, the
authorized client repository of oauth2Login(), and the controller
argument resolver.
It comes after the OAuth2 client starter's module (after), whose
ClientRegistrationRepository and OAuth2AuthorizedClientService its
conditions look for. It secures a server, so it is only where one can
run (ModulePlatform.native): a browser build has none of it.
Implementation
@AutoConfigurationModule(
after: ['springBootStarterOauth2ClientAutoConfiguration'],
platform: ModulePlatform.native,
)
final BeanModule springBootStarterSecurityAutoConfiguration = BeanModule(
'springBootStarterSecurityAutoConfiguration',
[...securityAutoConfiguration],
imports: [securityConfigBeans],
);