Package su.onno.auth
Class OnnoAuthAutoConfiguration
java.lang.Object
su.onno.auth.OnnoAuthAutoConfiguration
@AutoConfiguration(before={org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class,org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration.class})
@EnableConfigurationProperties(OnnoAuthProperties.class)
@ConditionalOnProperty(prefix="onno.auth",
name="enabled",
havingValue="true",
matchIfMissing=true)
public class OnnoAuthAutoConfiguration
extends Object
Auto-configures authentication for an Onno application. The active backend is chosen by
onno.auth.mode (see OnnoAuthProperties.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 Summary
Constructors -
Method Summary
-
Constructor Details
-
OnnoAuthAutoConfiguration
public OnnoAuthAutoConfiguration()
-