Skip to content

Commit

Permalink
added variabel for saved user
Browse files Browse the repository at this point in the history
  • Loading branch information
Erling Jahr committed Nov 22, 2023
1 parent 1aa81ba commit ca1d76d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
//implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0'

implementation 'io.netty:netty-resolver-dns-native-macos:4.1.82.Final:osx-aarch_64'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.flywaydb:flyway-core'
Expand Down
11 changes: 5 additions & 6 deletions src/main/java/no/fintlabs/FintKontrollConfiguration.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package no.fintlabs;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@Import(no.fintlabs.securityconfig.FintKontrollSecurityConfig.class)
public class FintKontrollConfiguration {

}
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.AbstractHttpConfigurer;
import org.springframework.security.web.SecurityFilterChain;
4 changes: 2 additions & 2 deletions src/main/java/no/fintlabs/user/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ private Consumer<User> onSaveExistingUser(User user) {
user.setId(existingUser.getId());
log.info("Update user: " + user.getId());
memberService.process(memberService.create(user));
userRepository.save(user);
userEntityProducerService.publish(user);
User savedUser = userRepository.save(user);
userEntityProducerService.publish(savedUser);
};
}

Expand Down

0 comments on commit ca1d76d

Please sign in to comment.