Changeset a436340 for src/main/java/edu/gjoko/schedlr/config
- Timestamp:
- 02/05/23 19:55:10 (22 months ago)
- Branches:
- master
- Children:
- 2b0a4db
- Parents:
- cc52b09
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/edu/gjoko/schedlr/config/AppSecurityConfig.java
rcc52b09 ra436340 45 45 http.csrf() 46 46 .disable() 47 .authorizeRequests()48 .antMatchers("/login").permitAll()49 .antMatchers("/register_customer").permitAll()50 .antMatchers("/register_business").permitAll()51 .antMatchers("/homepage").permitAll()52 .antMatchers("/css/**").permitAll()53 .antMatchers("/js/**").permitAll()54 .antMatchers("/anonymous*").anonymous()55 .anyRequest()56 .fullyAuthenticated()57 .and()58 47 .httpBasic() 59 48 .authenticationEntryPoint(new AppAuthenticationEntryPoint()) … … 64 53 .loginProcessingUrl("/login") 65 54 .successHandler(authenticationSuccessHandler) 66 .defaultSuccessUrl("/homepage"); 55 .defaultSuccessUrl("/homepage") 56 .and() 57 .authorizeRequests() 58 .antMatchers("/login").permitAll() 59 .antMatchers("/register_customer").permitAll() 60 .antMatchers("/register_business").permitAll() 61 .antMatchers("/api/nomenclatures/*").permitAll() 62 .antMatchers("/homepage").permitAll() 63 .antMatchers("/css/**").permitAll() 64 .antMatchers("/js/**").permitAll() 65 .antMatchers("/anonymous*").anonymous() 66 .anyRequest() 67 .fullyAuthenticated(); 67 68 } 68 69 }
Note:
See TracChangeset
for help on using the changeset viewer.