diff --git a/example/loginEmail/1.0/data.json b/example/loginEmail/1.0/data.json new file mode 100644 index 0000000000000000000000000000000000000000..387ab8a692156ea23b3c34ee3285401ff1fcb9fc --- /dev/null +++ b/example/loginEmail/1.0/data.json @@ -0,0 +1,7 @@ +{ + "trustedEmails": [ + "example@example.com", + "test@example.com", + "policy@example.com" + ] +} diff --git a/example/loginEmail/1.0/policy.rego b/example/loginEmail/1.0/policy.rego new file mode 100644 index 0000000000000000000000000000000000000000..5698cb4934078f11d3bb3c2f43db479023d1fccd --- /dev/null +++ b/example/loginEmail/1.0/policy.rego @@ -0,0 +1,9 @@ +package example.loginEmail + +import future.keywords.in + +default allow = false + +allow { + input.email in data.trustedEmails +}