Skip to content

Commit

Permalink
security classes to security config module
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-liauchuk committed Jun 7, 2020
1 parent a82aa3f commit 858edea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.educational.platform.users.security;
package com.educational.platform.security;

/**
* Represents jwt token validation exception
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
package com.educational.platform.users.security;
package com.educational.platform.security;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
* Represents security settings.
*/
@Configuration
@EnableGlobalMethodSecurity(prePostEnabled = true)
@ConditionalOnProperty(
name = "com.educational.platform.security.enabled",
havingValue = "true")
public class SecurityConfiguration {

@Bean
Expand Down

0 comments on commit 858edea

Please sign in to comment.