Skip to content

Commit 73a09ad

Browse files
committed
feat: bulk of removals #156
1 parent a614d67 commit 73a09ad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+62
-5993
lines changed

app/src/main/java/org/gluu/casa/core/ConfigurationHandler.java

+17-26
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ public class ConfigurationHandler extends JobListenerSupport {
3838
@Inject
3939
private PersistenceService persistenceService;
4040

41-
@Inject
42-
private OxdService oxdService;
43-
4441
@Inject
4542
private ExtensionsManager extManager;
4643

@@ -156,31 +153,25 @@ public void jobToBeExecuted(JobExecutionContext context) {
156153
computeAcrPluginMapping();
157154
computeCorsOrigins();
158155

159-
if (oxdService.initialize()) {
160-
//Call to initialize should be followed by saving
161-
try {
162-
saveSettings();
163-
setAppState(AppStateEnum.OPERATING);
164-
} catch (Exception e) {
165-
logger.error(e.getMessage());
166-
setAppState(AppStateEnum.FAIL);
167-
}
168-
if (appState.equals(AppStateEnum.OPERATING)) {
169-
logger.info("=== WEBAPP INITIALIZED SUCCESSFULLY ===");
170-
//Add some random seconds to gaps. This reduces the chance of timers running at the same time
171-
//in a multi node environment, which IMO it's somewhat safer
172-
int gap = Double.valueOf(Math.random() * 7).intValue();
173-
scriptsReloader.init(1 + gap);
174-
syncSettingsTimer.activate(60 + gap);
175-
//statistics timer executes in a single node in theory...
176-
//statisticsTimer.activate(120 + gap);
177-
//plugin checker is not shared-state related
178-
pluginChecker.activate(5);
179-
}
180-
} else {
181-
logger.warn("oxd configuration could not be initialized.");
156+
try {
157+
saveSettings();
158+
setAppState(AppStateEnum.OPERATING);
159+
} catch (Exception e) {
160+
logger.error(e.getMessage());
182161
setAppState(AppStateEnum.FAIL);
183162
}
163+
if (appState.equals(AppStateEnum.OPERATING)) {
164+
logger.info("=== WEBAPP INITIALIZED SUCCESSFULLY ===");
165+
//Add some random seconds to gaps. This reduces the chance of timers running at the same time
166+
//in a multi node environment, which IMO it's somewhat safer
167+
int gap = Double.valueOf(Math.random() * 7).intValue();
168+
scriptsReloader.init(1 + gap);
169+
syncSettingsTimer.activate(60 + gap);
170+
//statistics timer executes in a single node in theory...
171+
//statisticsTimer.activate(120 + gap);
172+
//plugin checker is not shared-state related
173+
pluginChecker.activate(5);
174+
}
184175
}
185176

186177
} catch (Exception e) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package org.gluu.casa.core;
2+
3+
import java.util.List;
4+
import java.util.Map;
5+
import javax.enterprise.context.ApplicationScoped;
6+
import javax.inject.Named;
7+
8+
import org.zkoss.util.Pair;
9+
10+
@Named
11+
@ApplicationScoped
12+
public class OIDCFlowService {
13+
14+
public String getAuthzUrl(String acrValues) {
15+
return null;
16+
}
17+
18+
public String getAuthzUrl(List<String> acrValues, String prompt) {
19+
return null;
20+
}
21+
22+
public String getLogoutUrl(String idTokenHint) {
23+
return null;
24+
}
25+
26+
public Pair<String, String> getTokens(String code, String state) {
27+
return null;
28+
}
29+
30+
public Map getUserClaims(String accessToken) {
31+
return null;
32+
}
33+
34+
}

0 commit comments

Comments
 (0)