Package com.onec.auth

Class OnecAuthAutoConfiguration

java.lang.Object
com.onec.auth.OnecAuthAutoConfiguration

@AutoConfiguration(before={org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class,org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration.class}) @EnableConfigurationProperties(OnecAuthProperties.class) @ConditionalOnProperty(prefix="onec.auth", name="enabled", havingValue="true", matchIfMissing=true) public class OnecAuthAutoConfiguration extends Object
Auto-configures authentication for an Onec application. The active backend is chosen by onec.auth.mode (see OnecAuthProperties.Mode); exactly one of the nested configurations below contributes a SecurityFilterChain. All three keep the same authorization model — /api/** requires authentication, everything else (the SPA shell) is public — so swapping modes never changes which routes are protected.
  • Constructor Details

    • OnecAuthAutoConfiguration

      public OnecAuthAutoConfiguration()