source: sources/app/src/main/java/parkup/configs/webConfigs/WebSecurityConfigVraboten.java@ e8b1076

Last change on this file since e8b1076 was 9ff45d6, checked in by andrejTavchioski <andrej.tavchioski@…>, 3 years ago

Fixed some functionalities related to parkingSessions and parkingZones

  • Property mode set to 100644
File size: 2.2 KB
Line 
1//package parkup.configs.webConfigs;
2//
3//import org.springframework.context.annotation.Bean;
4//import org.springframework.context.annotation.Configuration;
5//import org.springframework.core.annotation.Order;
6//import org.springframework.security.authentication.dao.DaoAuthenticationProvider;
7//import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
8//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
9//import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
10//import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
11//import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
12//import parkup.services.VrabotenService;
13//
14//@EnableWebSecurity
15//@Order(99)
16//@Configuration
17//public class WebSecurityConfigVraboten extends WebSecurityConfigurerAdapter {
18// private final VrabotenService vrabotenService;
19// private final BCryptPasswordEncoder bCryptPasswordEncoder;
20//
21// public WebSecurityConfigVraboten(VrabotenService vrabotenService, BCryptPasswordEncoder bCryptPasswordEncoder) {
22// this.vrabotenService = vrabotenService;
23// this.bCryptPasswordEncoder = bCryptPasswordEncoder;
24// }
25//
26// @Override
27// protected void configure(HttpSecurity http) throws Exception {
28// http
29// .csrf().disable()
30// .authorizeRequests()
31// .antMatchers("/vraboten/registration/**")
32// .permitAll()
33// .anyRequest()
34// .authenticated()
35// .and()
36// .formLogin();//ruta na viktor
37// }
38//
39// @Override
40// protected void configure(AuthenticationManagerBuilder auth) throws Exception {
41// auth.authenticationProvider(daoAuthenticationProviderW());
42// }
43//
44// @Bean
45// public DaoAuthenticationProvider daoAuthenticationProviderW() {
46// DaoAuthenticationProvider provider = new DaoAuthenticationProvider();
47// provider.setPasswordEncoder(bCryptPasswordEncoder);
48// provider.setUserDetailsService(vrabotenService);
49// return provider;
50// }
51//}
Note: See TracBrowser for help on using the repository browser.