diff --git a/cosec-core/src/main/kotlin/me/ahoo/cosec/policy/condition/OgnlConditionMatcher.kt b/cosec-core/src/main/kotlin/me/ahoo/cosec/policy/condition/OgnlConditionMatcher.kt index 187d764..0049b5e 100644 --- a/cosec-core/src/main/kotlin/me/ahoo/cosec/policy/condition/OgnlConditionMatcher.kt +++ b/cosec-core/src/main/kotlin/me/ahoo/cosec/policy/condition/OgnlConditionMatcher.kt @@ -33,7 +33,7 @@ class OgnlConditionMatcher(configuration: Configuration) : val contextValues = mapOf( "request" to request, "context" to securityContext, - ) as Map + ) val ognlContext = Ognl.createDefaultContext(request).withValues(contextValues) return Ognl.getValue(ognlExpression, ognlContext, request, Boolean::class.java) as Boolean } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 186184e..e892c47 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -7,7 +7,7 @@ cocache = "2.6.2" opentelemetry = "2.11.0" testcontainers = "1.20.4" guava = "33.4.0-jre" -ognl = "3.4.4" +ognl = "3.4.5" javaJwt = "4.4.0" ip2region = "2.7.0" justAuth = "1.16.7"