Skip to content

Commit

Permalink
amended the secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
sdh100shaun committed Jun 13, 2024
1 parent b289603 commit f6e1083
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
12 changes: 3 additions & 9 deletions src/main/java/apiCalls/Utils/generic/BaseAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,12 @@

public class BaseAPI extends Token {
protected static EnvironmentType env = EnvironmentType.getEnum(Properties.get("env", true));
protected SecretsManager secrets;


public BaseAPI() {
secrets= new SecretsManager();
}


static Headers headers = new Headers();

public synchronized String adminJWT() throws HttpException {
String adminUser =secrets.getSecret("adminUser");
String adminPassword = secrets.getSecret("adminPassword");
String adminUser =SecretsManager.getSecret("adminUser");
String adminPassword = SecretsManager.getSecret("adminPassword");
if(getAdminToken() == null){
generateAdminToken(adminUser, adminPassword);
}
Expand Down
1 change: 0 additions & 1 deletion src/main/java/apiCalls/actions/UserDetails.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public class UserDetails extends BaseAPI {
private Headers apiHeaders = new Headers();
private String jwtToken;

private String adminToken;
private String organisationId;

EnvironmentType env = EnvironmentType.getEnum(Properties.get("env", true));
Expand Down

0 comments on commit f6e1083

Please sign in to comment.