mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-25 16:42:34 +00:00
Fix federation provider example to load users file from it's own ClassLoader instead of Thread CL
This commit is contained in:
@@ -20,7 +20,7 @@ public class ClasspathPropertiesFederationFactory extends BasePropertiesFederati
|
||||
}
|
||||
|
||||
protected InputStream getPropertiesFileStream(String path) {
|
||||
InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(path);
|
||||
InputStream is = getClass().getClassLoader().getResourceAsStream(path);
|
||||
if (is == null) {
|
||||
throw new IllegalStateException("Path not found for properties file");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user