Skip to content

Login gains an audit log

A sequence diff. A new audit log records each login, a locked-account branch is added, and the first message is renamed.

A new audit log records each login, a locked-account branch is added, and the first message is renamedA new audit log records each login, a locked-account branch is added, and the first message is renamed
The version before the change: User, Web App, Auth Service and Database.The version before the change: User, Web App, Auth Service and Database.
Before
The version after the change: User, Web App, Auth Service, Database and Audit Log.The version after the change: User, Web App, Auth Service, Database and Audit Log.
After

Spec

login-change.v1.json
{
"type": "sequence",
"actors": [
{"id": "user", "label": "User"},
{"id": "web", "label": "Web App"},
{"id": "auth", "label": "Auth Service"},
{"id": "db", "label": "Database", "color": "red"}
],
"interactions": [
{"from": "user", "to": "web", "label": "submit form"},
{"from": "web", "to": "auth", "label": "check credentials"},
{"from": "auth", "to": "db", "label": "lookup user"},
{"from": "db", "to": "auth", "label": "user record", "style": "dashed"},
{"from": "auth", "to": "web", "label": "ok", "style": "dashed"},
{"from": "web", "to": "user", "label": "welcome", "style": "dashed"},
{"from": "auth", "to": "web", "label": "denied", "style": "dashed"},
{"from": "web", "to": "user", "label": "error", "style": "dashed"}
],
"fragments": [
{
"type": "alt",
"over": ["user", "web", "auth"],
"sections": [
{"label": "valid", "start": 4, "end": 5},
{"label": "invalid", "start": 6, "end": 7}
]
}
]
}

Draw it yourself

Terminal window
diago diff login-change.v1.json login-change.v2.json > login-change.diff.svg

Open it in the playground to edit it in your browser.