ch4mpy / spring-addons

Ease spring OAuth2 resource-servers configuration and testing
Apache License 2.0
557 stars 90 forks source link

Make use of @AutoConfiguration #48

Closed ch4mpy closed 2 years ago

ch4mpy commented 2 years ago

Implement spring-boot auto-configuration so that explicitly @Import(ServletSecurityBeans) or @Import(ReactiveSecurityBeans) is not required anymore.

spring-security-oauth2-webmvc-addons or spring-security-oauth2-webflux-addons being on the classpath should be enough.

The new way to declare auto-configuration, as anouced with spring 2.7, should be used