Updated 'Forgot Password' diagram and rename diagrams from '.txt' to '.puml'
authorSriram Viswanathan <sriramv@thoughtworks.com>
Fri, 24 Mar 2017 21:29:13 +0000 (18:29 -0300)
committerSriram Viswanathan <sriramv@thoughtworks.com>
Fri, 24 Mar 2017 21:29:13 +0000 (18:29 -0300)
service/diagrams/backup_account.puml [moved from service/diagrams/backup_account.txt with 97% similarity]
service/diagrams/forgot_password.png
service/diagrams/forgot_password.puml [new file with mode: 0644]
service/diagrams/forgot_password.txt [deleted file]

similarity index 97%
rename from service/diagrams/backup_account.txt
rename to service/diagrams/backup_account.puml
index 661126f..7af9960 100644 (file)
@@ -1,3 +1,4 @@
+@startuml
 title Backup Account Flow
 
 actor User
@@ -35,3 +36,4 @@ else bonafide failure
   note right: delete new recovery code
   PixUA -> User : error message
 end
+@enduml
index 37dea8f..472e392 100644 (file)
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 (file)
index 0000000..bfa746b
--- /dev/null
@@ -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 (file)
index 2a303dd..0000000
+++ /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