Skip to content

Instantly share code, notes, and snippets.

@colinfwren
Created September 1, 2024 22:29
Show Gist options
  • Save colinfwren/5bb70873d6af3171385d484e874cb80c to your computer and use it in GitHub Desktop.
Save colinfwren/5bb70873d6af3171385d484e874cb80c to your computer and use it in GitHub Desktop.
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