From f1494c25b9aa97e031ad9d1397768bf2bb887317 Mon Sep 17 00:00:00 2001 From: David Brossard <6230719+davidjbrossard@users.noreply.github.com> Date: Tue, 15 Oct 2024 16:09:29 -0700 Subject: [PATCH 1/2] Updated the Axiomatics results for 1.1 conformance --- .../scenarios/todo-1.1/results/axiomatics.md | 1076 +++++++++++++++++ 1 file changed, 1076 insertions(+) create mode 100644 interop/authzen-interop-website/docs/scenarios/todo-1.1/results/axiomatics.md diff --git a/interop/authzen-interop-website/docs/scenarios/todo-1.1/results/axiomatics.md b/interop/authzen-interop-website/docs/scenarios/todo-1.1/results/axiomatics.md new file mode 100644 index 0000000..4413591 --- /dev/null +++ b/interop/authzen-interop-website/docs/scenarios/todo-1.1/results/axiomatics.md @@ -0,0 +1,1076 @@ +--- +sidebar_position: 10 +--- + +# Axiomatics + +Interop results for the [Axiomatics](https://www.axiomatics.com/) implementation hosted at https://pdp.alfa.guide. + +## Test results + +```bash +yarn run v1.22.22 +$ node build/test/runner.js https://pdp.alfa.guide 1.1-preview markdown +``` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
resultrequest
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDA2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_read_user" + }, + "resource": { + "type": "user", + "id": "beth@the-smiths.com" + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDA2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_read_user" + }, + "resource": { + "type": "user", + "id": "rick@the-citadel.com" + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDA2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_read_todos" + }, + "resource": { + "type": "todo", + "id": "todo-1" + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDA2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_create_todo" + }, + "resource": { + "type": "todo", + "id": "todo-1" + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDA2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_update_todo" + }, + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "rick@the-citadel.com" + } + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDA2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_update_todo" + }, + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "morty@the-citadel.com" + } + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDA2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_delete_todo" + }, + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "rick@the-citadel.com" + } + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDA2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_delete_todo" + }, + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "morty@the-citadel.com" + } + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDE2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_read_user" + }, + "resource": { + "type": "user", + "id": "beth@the-smiths.com" + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDE2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_read_user" + }, + "resource": { + "type": "user", + "id": "morty@the-citadel.com" + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDE2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_read_todos" + }, + "resource": { + "type": "todo", + "id": "todo-1" + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDE2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_create_todo" + }, + "resource": { + "type": "todo", + "id": "todo-1" + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDE2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_update_todo" + }, + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "rick@the-citadel.com" + } + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDE2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_update_todo" + }, + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "morty@the-citadel.com" + } + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDE2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_delete_todo" + }, + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "rick@the-citadel.com" + } + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDE2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_delete_todo" + }, + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "morty@the-citadel.com" + } + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDI2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_read_user" + }, + "resource": { + "type": "user", + "id": "beth@the-smiths.com" + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDI2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_read_user" + }, + "resource": { + "type": "user", + "id": "summer@the-smiths.com" + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDI2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_read_todos" + }, + "resource": { + "type": "todo", + "id": "todo-1" + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDI2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_create_todo" + }, + "resource": { + "type": "todo", + "id": "todo-1" + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDI2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_update_todo" + }, + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "rick@the-citadel.com" + } + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDI2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_update_todo" + }, + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "summer@the-smiths.com" + } + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDI2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_delete_todo" + }, + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "rick@the-citadel.com" + } + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDI2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_delete_todo" + }, + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "summer@the-smiths.com" + } + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDM2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_read_user" + }, + "resource": { + "type": "user", + "id": "beth@the-smiths.com" + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDM2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_read_user" + }, + "resource": { + "type": "user", + "id": "beth@the-smiths.com" + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDM2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_read_todos" + }, + "resource": { + "type": "todo", + "id": "todo-1" + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDM2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_create_todo" + }, + "resource": { + "type": "todo", + "id": "todo-1" + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDM2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_update_todo" + }, + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "rick@the-citadel.com" + } + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDM2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_update_todo" + }, + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "beth@the-smiths.com" + } + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDM2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_delete_todo" + }, + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "rick@the-citadel.com" + } + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDM2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_delete_todo" + }, + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "beth@the-smiths.com" + } + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDQ2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_read_user" + }, + "resource": { + "type": "user", + "id": "beth@the-smiths.com" + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDQ2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_read_user" + }, + "resource": { + "type": "user", + "id": "jerry@the-smiths.com" + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDQ2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_read_todos" + }, + "resource": { + "type": "todo", + "id": "todo-1" + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDQ2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_create_todo" + }, + "resource": { + "type": "todo", + "id": "todo-1" + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDQ2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_update_todo" + }, + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "rick@the-citadel.com" + } + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDQ2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_update_todo" + }, + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "jerry@the-smiths.com" + } + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDQ2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_delete_todo" + }, + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "rick@the-citadel.com" + } + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDQ2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_delete_todo" + }, + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "jerry@the-smiths.com" + } + } +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDA2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_update_todo" + }, + "evaluations": [ + { + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "rick@the-citadel.com" + } + } + }, + { + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "jerry@the-smiths.com" + } + } + } + ] +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDE2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_update_todo" + }, + "evaluations": [ + { + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "rick@the-citadel.com" + } + } + }, + { + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "morty@the-citadel.com" + } + } + } + ] +} +``` + +
PASS + +```js +{ + "subject": { + "type": "user", + "id": "CiRmZDQ2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs" + }, + "action": { + "name": "can_update_todo" + }, + "evaluations": [ + { + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "rick@the-citadel.com" + } + } + }, + { + "resource": { + "type": "todo", + "id": "7240d0db-8ff0-41ec-98b2-34a096273b9f", + "properties": { + "ownerID": "jerry@the-smiths.com" + } + } + } + ] +} +``` + +
+Done in 4.31s. From 866654f83c20f6a0c5dafb08dd0f46cbe6f09f13 Mon Sep 17 00:00:00 2001 From: Omri Gazitt Date: Wed, 16 Oct 2024 09:08:55 -0700 Subject: [PATCH 2/2] updated results file for axio, and added it to pdps.json for 1.1 --- .../docs/scenarios/todo-1.1/results/axiomatics.md | 5 ++--- interop/authzen-todo-backend/src/pdps.json | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/interop/authzen-interop-website/docs/scenarios/todo-1.1/results/axiomatics.md b/interop/authzen-interop-website/docs/scenarios/todo-1.1/results/axiomatics.md index 4413591..8e4f3d8 100644 --- a/interop/authzen-interop-website/docs/scenarios/todo-1.1/results/axiomatics.md +++ b/interop/authzen-interop-website/docs/scenarios/todo-1.1/results/axiomatics.md @@ -1,5 +1,5 @@ --- -sidebar_position: 10 +sidebar_position: 11 --- # Axiomatics @@ -9,10 +9,10 @@ Interop results for the [Axiomatics](https://www.axiomatics.com/) implementation ## Test results ```bash +yarn test https://pdp.alfa.guide 1.1-preview markdown yarn run v1.22.22 $ node build/test/runner.js https://pdp.alfa.guide 1.1-preview markdown ``` - @@ -1073,4 +1073,3 @@ $ node build/test/runner.js https://pdp.alfa.guide 1.1-preview markdown
result
-Done in 4.31s. diff --git a/interop/authzen-todo-backend/src/pdps.json b/interop/authzen-todo-backend/src/pdps.json index 1b5c46c..18b1755 100644 --- a/interop/authzen-todo-backend/src/pdps.json +++ b/interop/authzen-todo-backend/src/pdps.json @@ -26,6 +26,7 @@ }, "1.1-preview": { "Aserto": "https://authzen-proxy.demo.aserto.com", + "Axiomatics": "https://pdp.alfa.guide", "Cerbos": "https://authzen-proxy-demo.cerbos.dev", "HexaOPA": "https://interop.authzen.hexaorchestration.org", "Indykite": "https://api-authzen-authz.3edges.io",