|
|
|
@ -3,7 +3,6 @@ package de.kreth.invoice.security; |
|
|
|
import org.keycloak.KeycloakPrincipal; |
|
|
|
import org.keycloak.KeycloakPrincipal; |
|
|
|
import org.keycloak.KeycloakSecurityContext; |
|
|
|
import org.keycloak.KeycloakSecurityContext; |
|
|
|
import org.keycloak.representations.AccessToken; |
|
|
|
import org.keycloak.representations.AccessToken; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
|
|
|
import org.springframework.security.core.Authentication; |
|
|
|
import org.springframework.security.core.Authentication; |
|
|
|
import org.springframework.security.core.context.SecurityContextHolder; |
|
|
|
import org.springframework.security.core.context.SecurityContextHolder; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
@ -18,8 +17,7 @@ public class UserManager { |
|
|
|
|
|
|
|
|
|
|
|
private UserRepository userRepository; |
|
|
|
private UserRepository userRepository; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
public UserManager(UserRepository userRepository) { |
|
|
|
public void setUserRepository(UserRepository userRepository) { |
|
|
|
|
|
|
|
this.userRepository = userRepository; |
|
|
|
this.userRepository = userRepository; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|