Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -258,14 +258,14 @@ public static void main(String[] args) throws Exception {
OrgMessageSender sender = new OrgMessageSender(mdSupplier, sendMsg.get());

Optional<String> togaKeyStr = GetEnv("TOGA_CLIENT_KEYS");
List<Jurisdiction> jurisdictions =
List<Jurisdiction> tylerJurisdictions =
GetEnv("TYLER_JURISDICTIONS")
.map(j -> Stream.of(j.split(" ")))
.orElse(Stream.empty())
.map(Jurisdiction::parse)
.toList();
List<String> togaKeys = List.of(togaKeyStr.orElse("").split(" "));
if (jurisdictions.size() > 0 && jurisdictions.size() != togaKeys.size()) {
if (tylerJurisdictions.size() > 0 && tylerJurisdictions.size() != togaKeys.size()) {
log.error("TOGA_CLIENT_KEYS list should be same size as TYLER_JURISDICTIONS list.");
throw new RuntimeException("TOGA_CLIENT_KEYS and TYLER_JURISDICTION mismatch");
}
Expand All @@ -276,8 +276,8 @@ public static void main(String[] args) throws Exception {
codesUpdateTime = LocalTime.parse(time);

List<EfmModuleSetup> modules = new ArrayList<>();
for (int idx = 0; idx < jurisdictions.size(); idx++) {
var jurisdiction = jurisdictions.get(idx);
for (int idx = 0; idx < tylerJurisdictions.size(); idx++) {
var jurisdiction = tylerJurisdictions.get(idx);
TylerModuleSetup.create(
jurisdiction,
togaKeys.get(idx),
Expand Down Expand Up @@ -308,6 +308,9 @@ public static void main(String[] args) throws Exception {
}
log.info("Starting Server with the following Filers: {}", modules);

List<Jurisdiction> jurisdictions = new ArrayList<>();
jurisdictions.addAll(tylerJurisdictions);
jurisdictions.addAll(tfJurisdictions);
Supplier<LoginDatabase> ldSupplier = () -> LoginDatabase.fromDS(userDs);
SecurityHub security = new SecurityHub(ldSupplier, jurisdictions);
EfspServer server = new EfspServer(codeDs, userDs, sender, modules, security, converterMap);
Expand Down
3 changes: 3 additions & 0 deletions scripts/fly_create_qa_api_key.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
echo "Who will be using this API key? This value will be stored in the server_name field (so no spaces)."
read server_name
fly console --config fly.qa.toml --debug --verbose --vm-size shared-cpu-2x --vm-memory 4096 --command "java -cp /app/efspserver-with-deps.jar edu.suffolk.litlab.efsp.db.LoginDatabase \"$server_name\" true"
Loading