forked from keycloak/keycloak
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing unnecessary configuration from auth servers
Signed-off-by: Pedro Igor <[email protected]>
- Loading branch information
Showing
5 changed files
with
1 addition
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,30 +17,16 @@ | |
|
||
package org.keycloak.common.util; | ||
|
||
import java.util.Collections; | ||
import java.util.Map; | ||
import java.util.Properties; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Stian Thorgersen</a> | ||
*/ | ||
public class SystemEnvProperties extends Properties { | ||
|
||
private final Map<String, String> overrides; | ||
|
||
public SystemEnvProperties(Map<String, String> overrides) { | ||
this.overrides = overrides; | ||
} | ||
|
||
public SystemEnvProperties() { | ||
this.overrides = Collections.EMPTY_MAP; | ||
} | ||
|
||
@Override | ||
public String getProperty(String key) { | ||
if (overrides.containsKey(key)) { | ||
return overrides.get(key); | ||
} else if (key.startsWith("env.")) { | ||
if (key.startsWith("env.")) { | ||
return System.getenv().get(key.substring(4)); | ||
} else { | ||
return System.getProperty(key); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 0 additions & 58 deletions
58
testsuite/utils/src/main/java/org/keycloak/testsuite/JsonConfigProviderFactory.java
This file was deleted.
Oops, something went wrong.