From 2af9c5c3969c9d4bae437948d4e5d481e22f3390 Mon Sep 17 00:00:00 2001 From: Sriram Viswanathan Date: Fri, 24 Mar 2017 18:29:13 -0300 Subject: Updated 'Forgot Password' diagram and rename diagrams from '.txt' to '.puml' --- service/diagrams/backup_account.puml | 39 +++++++++++++++++++ service/diagrams/backup_account.txt | 37 ------------------ service/diagrams/forgot_password.png | Bin 36634 -> 53916 bytes service/diagrams/forgot_password.puml | 68 ++++++++++++++++++++++++++++++++++ service/diagrams/forgot_password.txt | 35 ----------------- 5 files changed, 107 insertions(+), 72 deletions(-) create mode 100644 service/diagrams/backup_account.puml delete mode 100644 service/diagrams/backup_account.txt create mode 100644 service/diagrams/forgot_password.puml delete mode 100644 service/diagrams/forgot_password.txt (limited to 'service') diff --git a/service/diagrams/backup_account.puml b/service/diagrams/backup_account.puml new file mode 100644 index 00000000..7af99608 --- /dev/null +++ b/service/diagrams/backup_account.puml @@ -0,0 +1,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 diff --git a/service/diagrams/backup_account.txt b/service/diagrams/backup_account.txt deleted file mode 100644 index 661126f2..00000000 --- a/service/diagrams/backup_account.txt +++ /dev/null @@ -1,37 +0,0 @@ -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 diff --git a/service/diagrams/forgot_password.png b/service/diagrams/forgot_password.png index 37dea8fa..472e3925 100644 Binary files a/service/diagrams/forgot_password.png and b/service/diagrams/forgot_password.png differ diff --git a/service/diagrams/forgot_password.puml b/service/diagrams/forgot_password.puml new file mode 100644 index 00000000..bfa746b8 --- /dev/null +++ b/service/diagrams/forgot_password.puml @@ -0,0 +1,68 @@ +@startuml +title Forgot Password Flow + +skinparam handwritten false +skinparam sequenceGroupBorderColor LightGrey + +skinparam sequence { + ArrowColor Black + ActorBorderColor DeepSkyBlue + LifeLineBorderColor blue + LifeLineBackgroundColor #A9DCDF + + ParticipantBorderColor DeepSkyBlue + ParticipantBackgroundColor White + ParticipantFontName Impact + ParticipantFontSize 17 + ParticipantFontColor Grey + + ActorBackgroundColor aqua + ActorFontColor DeepSkyBlue + ActorFontSize 17 + ActorFontName Aapex +} + +actor User + +User -> PixUA : Submit recovery code and new password +alt submit successful + + PixUA -> BonafideClient : //Handshake// + alt Handshake Successful + + PixUA -> BonafideClient : Generate Salt & Verifier + alt Salt & Verifier Generation Successful + + BonafideClient -> LeapWebapp : Authenticate & Save New Password + alt New Password Saved + LeapWebapp -> BonafideClient : New Password Success + BonafideClient -> PixUA : New Password Success + + PixUA -> SoledadClient : Save Secret With New Password + alt Bonafide secret & new password saved successfully + SoledadClient -> PixUA : Secret saved successfully + PixUA -> User : Redirect To Confirmation Page + else soledad failure + PixUA -> User : Error Message + end + + else bonafide failure + LeapWebapp -> BonafideClient : New Password Not Saved + BonafideClient -> PixUA : New Password Not Saved + PixUA -> User : Error Message + end + + else Salt & Verifier Generation Error + BonafideClient -> PixUA : Salt Generation Error + PixUA -> User : Error Message + end + + else Handshake Failure + BonafideClient -> PixUA : Handshake Failure + PixUA -> User : Error Message + end + +else submit failure + PixUA -> User : Error Message +end +@enduml diff --git a/service/diagrams/forgot_password.txt b/service/diagrams/forgot_password.txt deleted file mode 100644 index 2a303ddc..00000000 --- a/service/diagrams/forgot_password.txt +++ /dev/null @@ -1,35 +0,0 @@ -title Forgot Password Flow - -actor User - -User -> PixUA : recovery code and new password - -PixUA -> BonafideClient : //handshake// -PixUA -> BonafideClient : recovery code and new password -note right - generate salt and verifier -end note - -BonafideClient -> LeapWebapp : recovery code and new password -note right - authenticate - save new password -end note - -LeapWebapp -> BonafideClient -BonafideClient -> PixUA - -alt successful case - PixUA -> SoledadClient : new password - note right : save secret with new password - SoledadClient -> PixUA - - alt successful case - PixUA -> User : confirmation page - note left: start backup account flow - else soledad failure - PixUA -> User : error message - end -else bonafide failure - PixUA -> User : error message -end -- cgit v1.2.3