diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index e9077d5b1..6a60b32ac 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -41,9 +41,9 @@ spring: javamelody: init-parameters: authorized-users: admin:kral0vnat3rm1t1st3 -keycloak: - enabled: false termit: + security: + provider: "internal" repository: url: http://localhost:7200/repositories/termit # if empty, repository.url will be used diff --git a/src/test/java/cz/cvut/kbss/termit/service/security/SecurityUtilsTest.java b/src/test/java/cz/cvut/kbss/termit/service/security/SecurityUtilsTest.java index 3945c76cb..00090dd3a 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/security/SecurityUtilsTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/security/SecurityUtilsTest.java @@ -39,7 +39,6 @@ import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.security.crypto.password.PasswordEncoder; -import org.springframework.security.oauth2.core.oidc.OidcUserInfo; import org.springframework.security.oauth2.jwt.Jwt; import org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken; @@ -48,7 +47,10 @@ import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.containsString; -import static org.junit.jupiter.api.Assertions.*; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.when; @ExtendWith(MockitoExtension.class)