Last change
on this file since 044bd76 was 401a211, checked in by Gjoko <goko_kostadinov@…>, 21 months ago |
Fixing security configuration
|
-
Property mode
set to
100644
|
File size:
823 bytes
|
Line | |
---|
1 | package edu.gjoko.schedlr.config;
|
---|
2 |
|
---|
3 | import org.springframework.context.annotation.Bean;
|
---|
4 | import org.springframework.context.annotation.Configuration;
|
---|
5 | import org.springframework.security.config.core.GrantedAuthorityDefaults;
|
---|
6 | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
---|
7 | import org.springframework.security.web.authentication.AuthenticationSuccessHandler;
|
---|
8 |
|
---|
9 | @Configuration
|
---|
10 | public 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.