-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement authorisation check in stopExecution
affects: tymly
- Loading branch information
1 parent
052d6df
commit eee9d6b
Showing
7 changed files
with
308 additions
and
84 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
21 changes: 21 additions & 0 deletions
21
test/fixtures/blueprints/access-controlled-blueprint/state-machines/admin.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"Comment": "Blueprint to do a thing", | ||
"version": "1.0", | ||
"StartAt": "Success", | ||
"States": { | ||
"Success": { | ||
"Type": "Task", | ||
"Resource": "module:success", | ||
"ResultPath": "$.success", | ||
"End": true | ||
} | ||
}, | ||
"restrictions": [ | ||
{ | ||
"roleId": "admin", | ||
"allows": [ | ||
"*" | ||
] | ||
} | ||
] | ||
} |
25 changes: 25 additions & 0 deletions
25
...tures/blueprints/access-controlled-blueprint/state-machines/authenticated-heart-beat.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"Comment": "State machine to test heartbeat functionality.", | ||
"version": "1.0", | ||
"StartAt": "Heartbeat", | ||
"States": { | ||
"Heartbeat": { | ||
"Type": "Task", | ||
"Resource": "module:heartBeat", | ||
"End": true | ||
} | ||
}, | ||
"restrictions": [ | ||
{ | ||
"roleId": "$everyone", | ||
"allows": [ | ||
"create" | ||
] | ||
}, | ||
{ "roleId": "$authenticated", | ||
"allows": [ | ||
"*" | ||
] | ||
} | ||
] | ||
} |
20 changes: 20 additions & 0 deletions
20
test/fixtures/blueprints/access-controlled-blueprint/state-machines/everyone-heart-beat.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"Comment": "State machine to test heartbeat functionality.", | ||
"version": "1.0", | ||
"StartAt": "Heartbeat", | ||
"States": { | ||
"Heartbeat": { | ||
"Type": "Task", | ||
"Resource": "module:heartBeat", | ||
"End": true | ||
} | ||
}, | ||
"restrictions": [ | ||
{ | ||
"roleId": "$everyone", | ||
"allows": [ | ||
"*" | ||
] | ||
} | ||
] | ||
} |
25 changes: 25 additions & 0 deletions
25
test/fixtures/blueprints/access-controlled-blueprint/state-machines/owner-heart-beat.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"Comment": "State machine to test heartbeat functionality.", | ||
"version": "1.0", | ||
"StartAt": "Heartbeat", | ||
"States": { | ||
"Heartbeat": { | ||
"Type": "Task", | ||
"Resource": "module:heartBeat", | ||
"End": true | ||
} | ||
}, | ||
"restrictions": [ | ||
{ | ||
"roleId": "$everyone", | ||
"allows": [ | ||
"create" | ||
] | ||
}, | ||
{ "roleId": "$owner", | ||
"allows": [ | ||
"*" | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.