Skip to content

Commit e0b6cf0

Browse files
committed
improved yaml config
1 parent 58edc26 commit e0b6cf0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dsf-common/dsf-common-auth/src/main/java/dev/dsf/common/auth/conf/RoleConfigReader.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
import java.util.function.Function;
2121

2222
import org.hl7.fhir.r4.model.Coding;
23+
import org.yaml.snakeyaml.LoaderOptions;
2324
import org.yaml.snakeyaml.Yaml;
25+
import org.yaml.snakeyaml.constructor.SafeConstructor;
2426

2527
import dev.dsf.common.auth.conf.RoleConfig.DsfRoleFactory;
2628

@@ -50,6 +52,6 @@ public <R extends DsfRole> RoleConfig<R> read(InputStream config, DsfRoleFactory
5052

5153
protected Yaml yaml()
5254
{
53-
return new Yaml();
55+
return new Yaml(new SafeConstructor(new LoaderOptions()));
5456
}
5557
}

0 commit comments

Comments
 (0)