Skip to content

Commit

Permalink
feat(jans-auth): log current folder in UserJansExtUidAttributeTest test
Browse files Browse the repository at this point in the history
* feat(jans-auth): log current folder in UserJansExtUidAttributeTest test

Signed-off-by: Yuriy Movchan <[email protected]>

* feat(jans-auth): log current folder in UserJansExtUidAttributeTest test

Signed-off-by: Yuriy Movchan <[email protected]>

* feat(jans-auth): log current folder in UserJansExtUidAttributeTest test

Signed-off-by: Yuriy Movchan <[email protected]>

* feat(jans-auth): log current folder in UserJansExtUidAttributeTest test

Signed-off-by: Yuriy Movchan <[email protected]>

---------

Signed-off-by: Yuriy Movchan <[email protected]>
  • Loading branch information
yurem authored Jan 16, 2025
1 parent cc3ad94 commit ca79ace
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import static org.junit.jupiter.api.Assertions.assertNull;

import java.io.File;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
Expand Down Expand Up @@ -87,10 +88,9 @@ public static void init() {
@Produces
@ApplicationScoped
public StringEncrypter getStringEncrypter() throws EncryptionException {
log.info("Current folder: {}", (new File(".").getAbsolutePath()));
System.out.println("Current folder: {}" +(new File(".").getAbsolutePath()));
String saltFilePath = Paths.get(Paths.get("").toAbsolutePath().toString(), "target/conf/salt").toAbsolutePath().toString();
FileConfiguration cryptoConfiguration = new FileConfiguration(saltFilePath);

FileConfiguration cryptoConfiguration = new FileConfiguration("./target/conf/salt");
String encodeSalt = cryptoConfiguration.getString("encodeSalt");

return StringEncrypter.instance(encodeSalt);
Expand Down

0 comments on commit ca79ace

Please sign in to comment.