Skip to content

Commit

Permalink
feat: bulk of removals #156
Browse files Browse the repository at this point in the history
  • Loading branch information
jgomer2001 committed Nov 2, 2021
1 parent a614d67 commit 73a09ad
Show file tree
Hide file tree
Showing 53 changed files with 62 additions and 5,993 deletions.
43 changes: 17 additions & 26 deletions app/src/main/java/org/gluu/casa/core/ConfigurationHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ public class ConfigurationHandler extends JobListenerSupport {
@Inject
private PersistenceService persistenceService;

@Inject
private OxdService oxdService;

@Inject
private ExtensionsManager extManager;

Expand Down Expand Up @@ -156,31 +153,25 @@ public void jobToBeExecuted(JobExecutionContext context) {
computeAcrPluginMapping();
computeCorsOrigins();

if (oxdService.initialize()) {
//Call to initialize should be followed by saving
try {
saveSettings();
setAppState(AppStateEnum.OPERATING);
} catch (Exception e) {
logger.error(e.getMessage());
setAppState(AppStateEnum.FAIL);
}
if (appState.equals(AppStateEnum.OPERATING)) {
logger.info("=== WEBAPP INITIALIZED SUCCESSFULLY ===");
//Add some random seconds to gaps. This reduces the chance of timers running at the same time
//in a multi node environment, which IMO it's somewhat safer
int gap = Double.valueOf(Math.random() * 7).intValue();
scriptsReloader.init(1 + gap);
syncSettingsTimer.activate(60 + gap);
//statistics timer executes in a single node in theory...
//statisticsTimer.activate(120 + gap);
//plugin checker is not shared-state related
pluginChecker.activate(5);
}
} else {
logger.warn("oxd configuration could not be initialized.");
try {
saveSettings();
setAppState(AppStateEnum.OPERATING);
} catch (Exception e) {
logger.error(e.getMessage());
setAppState(AppStateEnum.FAIL);
}
if (appState.equals(AppStateEnum.OPERATING)) {
logger.info("=== WEBAPP INITIALIZED SUCCESSFULLY ===");
//Add some random seconds to gaps. This reduces the chance of timers running at the same time
//in a multi node environment, which IMO it's somewhat safer
int gap = Double.valueOf(Math.random() * 7).intValue();
scriptsReloader.init(1 + gap);
syncSettingsTimer.activate(60 + gap);
//statistics timer executes in a single node in theory...
//statisticsTimer.activate(120 + gap);
//plugin checker is not shared-state related
pluginChecker.activate(5);
}
}

} catch (Exception e) {
Expand Down
34 changes: 34 additions & 0 deletions app/src/main/java/org/gluu/casa/core/OIDCFlowService.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package org.gluu.casa.core;

import java.util.List;
import java.util.Map;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;

import org.zkoss.util.Pair;

@Named
@ApplicationScoped
public class OIDCFlowService {

public String getAuthzUrl(String acrValues) {
return null;
}

public String getAuthzUrl(List<String> acrValues, String prompt) {
return null;
}

public String getLogoutUrl(String idTokenHint) {
return null;
}

public Pair<String, String> getTokens(String code, String state) {
return null;
}

public Map getUserClaims(String accessToken) {
return null;
}

}
Loading

0 comments on commit 73a09ad

Please sign in to comment.