source: sources/app/src/main/java/parkup/configs/webConfigs/WebSecurityConfigRegistriranParkirac.java@ 9ff45d6

Last change on this file since 9ff45d6 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.RegistriranParkiracService;
13//
14//@EnableWebSecurity
15//@Order(100)
16//@Configuration
17//public class WebSecurityConfigRegistriranParkirac extends WebSecurityConfigurerAdapter {
18// private final BCryptPasswordEncoder bCryptPasswordEncoder;
19// private final RegistriranParkiracService registriranParkiracService;
20//
21// public WebSecurityConfigRegistriranParkirac(RegistriranParkiracService registriranParkiracService, BCryptPasswordEncoder bCryptPasswordEncoder) {
22// this.bCryptPasswordEncoder = bCryptPasswordEncoder;
23// this.registriranParkiracService = registriranParkiracService;
24// }
25//
26// @Override
27// protected void configure(HttpSecurity http) throws Exception {
28// http
29// .csrf().disable()
30// .authorizeRequests()
31// .antMatchers("/registriranParkirac/registration/**")
32// .permitAll()
33// .anyRequest()
34// .authenticated().and().formLogin();//ruta na viktor
35// }
36//
37// @Override
38// protected void configure(AuthenticationManagerBuilder auth) throws Exception {
39// auth.authenticationProvider(daoAuthenticationProviderRP());
40// }
41//
42// @Bean
43// public DaoAuthenticationProvider daoAuthenticationProviderRP(){
44// DaoAuthenticationProvider provider = new DaoAuthenticationProvider();
45// provider.setPasswordEncoder(bCryptPasswordEncoder);
46// provider.setUserDetailsService(registriranParkiracService);
47// return provider;
48// }
49//}
Note: See TracBrowser for help on using the repository browser.