-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathexample.puml
26 lines (24 loc) · 954 Bytes
/
example.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@startuml
participant "Alice" as Alice_user #fdf2d0
participant "EFSS" as Alice_EFSS #fdf2d0
participant "Disco" as Alice_Disco #fdf2d0
participant "Disco" as Bob_Disco #eececd
participant "EFSS" as Bob_OCM #eececd
participant "Bob" as Bob_user #eececd
Bob_user -> Bob_OCM: Add contact 'Alice'
Bob_user -> Alice_user: OCM invite [ token, FQDN ]
Alice_user -> Alice_EFSS: Add contact 'Bob'
Alice_EFSS -> Bob_OCM: POST /invite_accept [ token ]
Bob_OCM -> Alice_EFSS: 201 created
Alice_user -> Alice_EFSS: Share doc with 'Bob'
Alice_EFSS -> Bob_Disco: GET /.well-known/ocm
Bob_Disco -> Alice_EFSS: endpoints, capabilities, pubkey
Alice_EFSS -> Bob_OCM: (signed) POST /ocm/share
Bob_OCM -> Alice_Disco: GET /.well-known/ocm
Alice_Disco -> Bob_OCM: pubkey
Bob_OCM -> Alice_EFSS: 201 created
Bob_OCM -> Alice_EFSS: (signed) /ocm/token
Alice_EFSS -> Bob_OCM: short-lived bearer token
Bob_OCM --> Alice_EFSS: (bearer) PROPFIND
Alice_EFSS -> Bob_OCM: OK
@enduml