Skip to content

Commit

Permalink
remove Usermanagement, mock-JWT integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wisskirchenj committed Jun 26, 2023
1 parent b646f12 commit b6e6155
Show file tree
Hide file tree
Showing 17 changed files with 55 additions and 522 deletions.
7 changes: 7 additions & 0 deletions .idea/dataSources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ dependencies {
runtimeOnly("org.postgresql:postgresql")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
annotationProcessor("org.projectlombok:lombok")
testImplementation("org.testcontainers:testcontainers:1.18.3")
testImplementation("org.testcontainers:junit-jupiter:1.18.3")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.security:spring-security-test")
}
Expand Down
58 changes: 0 additions & 58 deletions src/main/java/de/cofinpro/recipeserver/entities/User.java

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package de.cofinpro.recipeserver.security;

import de.cofinpro.recipeserver.repository.UserRepository;
import jakarta.servlet.DispatcherType;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand All @@ -9,10 +8,6 @@
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configurers.CsrfConfigurer;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.security.web.SecurityFilterChain;

/**
Expand All @@ -23,17 +18,6 @@
@EnableWebSecurity
public class WebSecurityConfig {

@Bean
public UserDetailsService userDetailsService(UserRepository repository) {
return username -> repository.findByUsername(username)
.orElseThrow(() -> new UsernameNotFoundException("User not found."));
}

@Bean
public PasswordEncoder passwordEncoder() {
return new BCryptPasswordEncoder();
}

@Bean
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
return http
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

40 changes: 0 additions & 40 deletions src/main/java/de/cofinpro/recipeserver/web/RegisterController.java

This file was deleted.

13 changes: 0 additions & 13 deletions src/main/java/de/cofinpro/recipeserver/web/dto/UserDto.java

This file was deleted.

27 changes: 0 additions & 27 deletions src/main/java/de/cofinpro/recipeserver/web/mapper/UserMapper.java

This file was deleted.

Loading

0 comments on commit b6e6155

Please sign in to comment.