From 61547920204426589d6010752a1a014fdb9ea22c Mon Sep 17 00:00:00 2001 From: Tom Peltonen Date: Tue, 16 Dec 2025 22:25:01 +1100 Subject: [PATCH] feat: Adding gloable entitlements Adding role map to intent (home/landing) --- entitlements/sample/allow_acmefox_.txt | 12 ++++++++ entitlements/sample/allow_foo.bar_.txt | 3 ++ entitlements/sample/allow_selfserve_.txt | 27 +++++++++++++++++ role.json | 38 ++++++++++++++++++++++++ 4 files changed, 80 insertions(+) create mode 100644 entitlements/sample/allow_acmefox_.txt create mode 100644 entitlements/sample/allow_foo.bar_.txt create mode 100644 entitlements/sample/allow_selfserve_.txt create mode 100644 role.json diff --git a/entitlements/sample/allow_acmefox_.txt b/entitlements/sample/allow_acmefox_.txt new file mode 100644 index 0000000..3d625a0 --- /dev/null +++ b/entitlements/sample/allow_acmefox_.txt @@ -0,0 +1,12 @@ +apps1 +menu-004 +menu-004-001 +menu-004-002-001 +menu-004-002-002 +menu-005 +menu-005-001 +menu-005-002 +menu-005-003 +menu-099-001 +menu-099-002 +apps2 \ No newline at end of file diff --git a/entitlements/sample/allow_foo.bar_.txt b/entitlements/sample/allow_foo.bar_.txt new file mode 100644 index 0000000..9c76ce0 --- /dev/null +++ b/entitlements/sample/allow_foo.bar_.txt @@ -0,0 +1,3 @@ +home1 +menu-001-001 +menu-001-002 \ No newline at end of file diff --git a/entitlements/sample/allow_selfserve_.txt b/entitlements/sample/allow_selfserve_.txt new file mode 100644 index 0000000..7ea14da --- /dev/null +++ b/entitlements/sample/allow_selfserve_.txt @@ -0,0 +1,27 @@ +home1 +menu-001-001 +menu-001-002 +apps1 +menu-002 +menu-002-001 +menu-002-002 +menu-003 +menu-003-001 +menu-003-002 +menu-003-003 +menu-003-004 +menu-004 +menu-004-001 +menu-004-002-001 +menu-004-002-002 +menu-005 +menu-005-001 +menu-005-002 +menu-005-003 +menu-099-001 +menu-099-002 +apps2 +apps2-002 +apps2-002-001 +apps2-002-002 +apps2-002-003 \ No newline at end of file diff --git a/role.json b/role.json new file mode 100644 index 0000000..7c5a7f0 --- /dev/null +++ b/role.json @@ -0,0 +1,38 @@ +{ + "landing_intent": [ + { + "role": "news.*", + "intent": "menu-003" + }, + { + "role": "shopping.*", + "intent": "apps2-002-002" + }, + { + "role": "photos.*", + "intent": "menu-004-002" + }, + { + "role": "staff.*", + "intent": "apps3-003" + }, + { + "role": ".*", + "intent": "apps2-002-001" + } + ], + "home_intent": [ + { + "role": "shopping.*", + "intent": "apps2-002-001" + }, + { + "role": "staff.*", + "intent": "apps3-003" + }, + { + "role": ".*", + "intent": "apps2-002-002" + } + ] +} \ No newline at end of file