summaryrefslogtreecommitdiff
path: root/service/diagrams/backup_account.puml
blob: 7af99608b83cde23f2a170d7c3721c15ae7dbda3 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
@startuml
title Backup Account Flow

actor User

User -> PixUA : backup email
note left
  existing user adds backup email
end note

PixUA -> SoledadClient
note right
  generate recovery code
  encrypt secret
  save to secrets doc
end note

SoledadClient -> PixUA: recovery code

PixUA -> BonafideClient : recovery code
note right
  generate salt and verifier
end note

BonafideClient -> LeapWebapp : recovery code

LeapWebapp -> BonafideClient
BonafideClient -> PixUA

alt successful case
  PixUA -> SoledadClient
  note right: delete old recovery code
  PixUA -> User : email with recovery code
else bonafide failure
  PixUA -> SoledadClient
  note right: delete new recovery code
  PixUA -> User : error message
end
@enduml