Skip to content

Commit fa4ed7e

Browse files
committed
"dual-client" mode is mutually exclusive with HEART mode, HEART mode takes precedence
1 parent 51e3513 commit fa4ed7e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

openid-connect-common/src/main/java/org/mitre/openid/connect/config/ConfigurationPropertiesBean.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,11 @@ public void setLanguageNamespaces(List<String> languageNamespaces) {
201201
* @return true if dual client is configured, otherwise false
202202
*/
203203
public boolean isDualClient() {
204-
return dualClient;
204+
if (isHeartMode()) {
205+
return false; // HEART mode is incompatible with dual client mode
206+
} else {
207+
return dualClient;
208+
}
205209
}
206210

207211
/**
@@ -212,7 +216,7 @@ public void setDualClient(boolean dualClient) {
212216
}
213217

214218
/**
215-
* Get the list of namespaces as a JSON string
219+
* Get the list of namespaces as a JSON string, for injection into the JavaScript UI
216220
* @return
217221
*/
218222
public String getLanguageNamespacesString() {

0 commit comments

Comments
 (0)