Skip to content

Commit

Permalink
fix: consistent transactional annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasLohoff committed May 2, 2024
1 parent 89fe47d commit 32619fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ public class KeycloakUserProviderService implements UserProviderService<UserRepr

/**
* Finds a User by the passed keycloak ID. If it does not exist in the SHOGun DB it gets created.
*
* The groups of the user are also checked and created if needed.
*
* @param keycloakUserId UUID of keycloak user to find or create.
Expand Down Expand Up @@ -122,6 +121,7 @@ public User<UserRepresentation> setTransientRepresentations(User<UserRepresentat
}

@Override
@Transactional
public Optional<User<UserRepresentation>> getUserBySession() {
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
String keycloakUserId = getKeycloakUserIdFromAuthentication(authentication);
Expand Down

0 comments on commit 32619fa

Please sign in to comment.