Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
Remove the invalid characters OPA policy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhose committed May 3, 2024
1 parent 24021cc commit 3ea24dc
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions policies/authorization_grant_test.rego
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ea24dc

Please sign in to comment.