Created
September 1, 2024 22:29
-
-
Save colinfwren/5bb70873d6af3171385d484e874cb80c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const data = { | |
nodes: [ | |
{ | |
id: "persona-unauthorised-user", | |
name: "Unauthorised user" | |
}, | |
{ | |
id: "persona-authorised-user", | |
name: "Authorised user" | |
}, | |
{ | |
id: "user-flow-view-restricted-resource", | |
name: "User Flow: View restricted resource" | |
}, | |
{ | |
id: "user-action-visit-restricted-page", | |
name: "User Action: Visit Restricted Page" | |
}, | |
{ | |
id: "system-action-check-authorisation", | |
name: "System Action: Check authorisation" | |
}, | |
{ | |
id: "system-action-deny-access", | |
name: "System Action: Deny access to resource" | |
}, | |
{ | |
id: "system-action-show-resource", | |
name: "System Action: Show resource" | |
} | |
], | |
links: [ | |
{ | |
source: "persona-unauthorised-user", | |
target: "user-flow-view-restricted-resource", | |
}, | |
{ | |
source: "persona-authorised-user", | |
target: "user-flow-view-restricted-resource", | |
}, | |
{ | |
source: "user-flow-view-restricted-resource", | |
target: "user-action-visit-restricted-page", | |
}, | |
{ | |
source: "user-action-visit-restricted-page", | |
target: "system-action-check-authorisation", | |
}, | |
{ | |
source: "system-action-check-authorisation", | |
target: "system-action-deny-access", | |
}, | |
{ | |
source: "system-action-check-authorisation", | |
target: "system-action-show-resource", | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment