protected void configure()

in dashboard-web-app/src/main/java/org/inventory/hub/security/WebSecurityConfiguration.java [26:38]


    protected void configure(HttpSecurity http) throws Exception {
        if (aadEnabled) {
            http.authorizeRequests()
                .anyRequest()
                .authenticated()
                .and()
                .apply(configurer);
        } else {
            http.authorizeRequests()
                    .antMatchers("*")
                    .permitAll();
        }
    }