Skip to content

Commit

Permalink
add entity type.
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt committed Sep 27, 2024
1 parent b07236d commit 49a0159
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public String doIt(Properties context, String transactionName) {

// Add System Configurator
createSystemConfigurator(context, transactionName);
// financial management

// token definition
return "@AD_SetupDefinition_ID@ @Ok@";
}

Expand Down Expand Up @@ -85,6 +86,7 @@ private MSysConfig createSystemConfigurator(Properties context, String transacti
}
//
secretKey = new MSysConfig(context, 0, transactionName);
secretKey.setEntityType(JWTUtil.ECA52_EntityType);
secretKey.setAD_Org_ID(0);
secretKey.setConfigurationLevel(MSysConfig.CONFIGURATIONLEVEL_Client);
secretKey.setValue("");
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/org/spin/eca52/util/JWTUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@
* @author Yamel Senih, [email protected], ERPCyA http://www.erpya.com
*/
public class JWTUtil {

/** Entity Type Spin Contribution (JWT Token Generator) */
public static final String ECA52_EntityType = "ECA52";

/** Default key for JWT */
public static final String ECA52_JWT_SECRET_KEY = "ECA52_JWT_SECRET_KEY";

/** Default expiration time for JWT */
public static final String ECA52_JWT_EXPIRATION_TIME = "ECA52_JWT_EXPIRATION_TIME";

}

0 comments on commit 49a0159

Please sign in to comment.