Skip to content

Commit

Permalink
Remove unused import, update default application.yml with security co…
Browse files Browse the repository at this point in the history
…nfig.
  • Loading branch information
ledsoft committed Sep 6, 2023
1 parent b5d947a commit 386ab51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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)
Expand Down

0 comments on commit 386ab51

Please sign in to comment.