Skip to content

Commit

Permalink
fix(jans-auth): log current folder in UserServiceTest test (#10675)
Browse files Browse the repository at this point in the history
Signed-off-by: Yuriy Movchan <[email protected]>
  • Loading branch information
yurem authored Jan 17, 2025
1 parent b531cd8 commit 1468b47
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;

import java.nio.file.Paths;
import java.util.Arrays;
import java.util.Properties;

Expand Down Expand Up @@ -87,7 +88,8 @@ public static void init() {
@Produces
@ApplicationScoped
public StringEncrypter getStringEncrypter() throws EncryptionException {
FileConfiguration cryptoConfiguration = new FileConfiguration(".\\target\\conf\\salt");
String saltFilePath = Paths.get(Paths.get("").toAbsolutePath().toString(), "target/conf/salt").toAbsolutePath().toString();
FileConfiguration cryptoConfiguration = new FileConfiguration(saltFilePath);
String encodeSalt = cryptoConfiguration.getString("encodeSalt");

return StringEncrypter.instance(encodeSalt);
Expand Down

0 comments on commit 1468b47

Please sign in to comment.