source: src/main/java/edu/gjoko/schedlr/config/AppConfig.java@ 401a211

Last change on this file since 401a211 was 401a211, checked in by Gjoko <goko_kostadinov@…>, 21 months ago

Fixing security configuration

  • Property mode set to 100644
File size: 823 bytes
Line 
1package edu.gjoko.schedlr.config;
2
3import org.springframework.context.annotation.Bean;
4import org.springframework.context.annotation.Configuration;
5import org.springframework.security.config.core.GrantedAuthorityDefaults;
6import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
7import org.springframework.security.web.authentication.AuthenticationSuccessHandler;
8
9@Configuration
10public class AppConfig {
11 @Bean
12 public BCryptPasswordEncoder bCryptPasswordEncoder() {
13 return new BCryptPasswordEncoder();
14 }
15
16 @Bean
17 public AuthenticationSuccessHandler myApplicationAuthenticationSuccessHandler() {
18 return new AppAuthenticationSuccessHandler();
19 }
20
21 @Bean
22 GrantedAuthorityDefaults grantedAuthorityDefaults() {
23 return new GrantedAuthorityDefaults("");
24 }
25}
Note: See TracBrowser for help on using the repository browser.