You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.3 KiB

  1. {
  2. "allowRemoteResourceManagement": true,
  3. "policyEnforcementMode": "ENFORCING",
  4. "policies": [
  5. {
  6. "name": "Default Policy",
  7. "type": "js",
  8. "logic": "POSITIVE",
  9. "decisionStrategy": "AFFIRMATIVE",
  10. "config": {
  11. "code": "// by default, grants any permission associated with this policy\n$evaluation.grant();\n"
  12. }
  13. },
  14. {
  15. "name": "test-authz-rb-policy",
  16. "type": "role",
  17. "logic": "POSITIVE",
  18. "decisionStrategy": "UNANIMOUS",
  19. "config": {
  20. "roles": "[{\"id\":\"offline_access\",\"required\":false}]"
  21. }
  22. },
  23. {
  24. "name": "Default Permission",
  25. "type": "resource",
  26. "logic": "POSITIVE",
  27. "decisionStrategy": "UNANIMOUS",
  28. "config": {
  29. "applyPolicies": "[\"test-authz-rb-policy\"]"
  30. }
  31. },
  32. {
  33. "name": "Test scope",
  34. "type": "scope",
  35. "logic": "POSITIVE",
  36. "decisionStrategy": "UNANIMOUS",
  37. "config": {
  38. "scopes": "[]",
  39. "applyPolicies": "[\"test-authz-rb-policy\"]"
  40. }
  41. }
  42. ],
  43. "scopes": [],
  44. "decisionStrategy": "UNANIMOUS"
  45. }