DEV Community

Discussion on: Spring Boot and Multiple Authentication Profiles (None, Password & Okta)

Collapse
 
belgoros profile image
Serguei Cambour • Edited

Thank you for sharing. Do we need to set up an @Order when using different configurations by profile? For example, I have a configuration class in which I'd like just to change .antMatchers("/**").fullyAuthenticated() to .antMatchers("/**").permitAll() for local settings in the overridden configure(HttpSecurity http) method.

Collapse
 
trexinc profile image
Alex Yaroslavsky

No need to use @Order as long as all security adapters have a specific profile set on them.