Created
February 5, 2018 18:41
-
-
Save tsandall/834046907e927c77add7849639f10dff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package smart_home.authz | |
default allow = false | |
allow = true { | |
op = allowed_operations[_] | |
input.method = op.method | |
input.resource = op.resource | |
} | |
allowed_operations = [ | |
{“method”: “PUT”, “resource”: “air-conditioner”}, | |
{“method”: “GET”, “resource”: “security-camera”}, | |
{“method”: “POST”, “resource”: “garage-door”}, | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment