Skip to content

Commit cac99a3

Browse files
authored
Enriched code-flow diagram
1 parent 45c47fe commit cac99a3

File tree

1 file changed

+25
-16
lines changed

1 file changed

+25
-16
lines changed

diagrams/code-flow.puml

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,35 @@
11
@startuml
22

3-
participant "Alice" as Alice_user #fdf2d0
3+
actor "Alice" as Alice_user #fdf2d0
44
participant "EFSS" as Alice_EFSS #fdf2d0
55
participant "Disco" as Alice_Disco #fdf2d0
66
participant "Disco" as Bob_Disco #eececd
7-
participant "EFSS" as Bob_OCM #eececd
8-
participant "Bob" as Bob_user #eececd
9-
Bob_user -> Bob_OCM: Add contact 'Alice'
7+
participant "EFSS" as Bob_EFSS #eececd
8+
actor "Bob" as Bob_user #eececd
9+
== Invite ==
10+
Bob_user -> Bob_EFSS: Add contact 'Alice'
11+
Bob_EFSS -> Bob_user: token
1012
Bob_user -> Alice_user: OCM invite [ token, FQDN ]
11-
Alice_user -> Alice_EFSS: Add contact 'Bob'
12-
Alice_EFSS -> Bob_OCM: POST /invite_accept [ token ]
13-
Bob_OCM -> Alice_EFSS: 201 created
13+
Alice_user -> Alice_EFSS: Add contact [ token ]
14+
Alice_EFSS -> Bob_EFSS: POST /invite_accept [ token ]
15+
Bob_EFSS -> Bob_user: 'Alice' is a trusted contact
16+
Bob_EFSS --> Alice_EFSS: 201 created
17+
Alice_EFSS -> Alice_user: 'Bob' is a trusted contact
18+
== Share ==
1419
Alice_user -> Alice_EFSS: Share doc with 'Bob'
1520
Alice_EFSS -> Bob_Disco: GET /.well-known/ocm
1621
Bob_Disco -> Alice_EFSS: endpoints, capabilities, pubkey
17-
Alice_EFSS -> Bob_OCM: (signed) POST /ocm/share
18-
Bob_OCM -> Alice_Disco: GET /.well-known/ocm
19-
Alice_Disco -> Bob_OCM: pubkey
20-
Bob_OCM -> Alice_EFSS: 201 created
21-
Bob_OCM -> Alice_EFSS: (signed) /ocm/token
22-
Alice_EFSS -> Bob_OCM: short-lived bearer token
23-
Bob_OCM --> Alice_EFSS: (bearer) PROPFIND
24-
Alice_EFSS -> Bob_OCM: OK
22+
Alice_EFSS -> Bob_EFSS: (signed) POST /ocm/share
23+
Bob_EFSS -> Alice_Disco: GET /.well-known/ocm
24+
Alice_Disco -> Bob_EFSS: pubkey
25+
Bob_EFSS --> Alice_EFSS: 201 created
26+
Bob_EFSS -> Bob_user: doc was shared by 'Alice'
27+
== Access ==
28+
Bob_user -> Bob_EFSS: Access Alice's doc
29+
Bob_EFSS -> Alice_EFSS: (signed) /ocm/token [ refreshToken ]
30+
Alice_EFSS -> Bob_EFSS: short-lived bearer token
31+
Bob_EFSS -> Alice_EFSS: (bearer) PROPFIND
32+
Alice_EFSS --> Bob_EFSS: OK
33+
Bob_EFSS -> Bob_user: Display doc
2534

26-
@enduml
35+
@enduml

0 commit comments

Comments
 (0)