Skip to content

Commit

Permalink
Change oidc variable in Database class when setting is changed (#4581)
Browse files Browse the repository at this point in the history
  • Loading branch information
harmbrugge authored Dec 20, 2024
1 parent ec6315d commit 740d554
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,11 @@ public Database setSettings(Map<String, String> settings) {
}
if (settings.containsKey(Constants.IS_OIDC_ENABLED)) {
String isOidcEnabledSetting = settings.get(Constants.IS_OIDC_ENABLED);
if (Boolean.parseBoolean(isOidcEnabledSetting) && !isValidOidcSettings()) {
boolean isOidcEnabled = Boolean.parseBoolean(isOidcEnabledSetting);
if (isOidcEnabled && !isValidOidcSettings()) {
throw new MolgenisException("OIDC environment setting are incomplete");
}
this.isOidcEnabled = isOidcEnabled;
}

super.setSettings(settings);
Expand Down

0 comments on commit 740d554

Please sign in to comment.