From 3ea24dc8e5562838acee2ca74c491a4aec71bce5 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Fri, 3 May 2024 16:25:42 +0200 Subject: [PATCH] Remove the invalid characters OPA policy tests --- policies/authorization_grant_test.rego | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/policies/authorization_grant_test.rego b/policies/authorization_grant_test.rego index aedfcbf36..fc30f353f 100644 --- a/policies/authorization_grant_test.rego +++ b/policies/authorization_grant_test.rego @@ -60,22 +60,6 @@ test_device_scopes { with input.grant_type as "authorization_code" with input.scope as "urn:matrix:org.matrix.msc2967.client:device:AAbbCCdd01-asdasdsa1-2313" - # Invalid characters - not allow with input.user as user - with input.client as client - with input.grant_type as "authorization_code" - with input.scope as "urn:matrix:org.matrix.msc2967.client:device:AABB:CCDDEE" - - not allow with input.user as user - with input.client as client - with input.grant_type as "authorization_code" - with input.scope as "urn:matrix:org.matrix.msc2967.client:device:AABB*CCDDEE" - - not allow with input.user as user - with input.client as client - with input.grant_type as "authorization_code" - with input.scope as "urn:matrix:org.matrix.msc2967.client:device:AABB!CCDDEE" - # Too short not allow with input.user as user with input.client as client