48
48
ResendEmailVerification --> PerformEmailVerification
49
49
@enduml
50
50
....
51
- foo
51
+
52
+ === Activity diagramm for login
52
53
[plantuml,login-activity,svg]
53
54
....
54
55
@startuml
56
+ <style>
57
+ activityDiagram {
58
+ note {
59
+ BackgroundColor #00FF00
60
+ }
61
+ }
62
+ </style>
55
63
56
64
start
57
- switch (choose a login mode)
65
+ switch ( choose a login mode )
58
66
case (via login data)
59
67
: enter username/password;
60
68
if() then (login data valid)
@@ -65,7 +73,7 @@ case (via login data)
65
73
stop
66
74
endif
67
75
case (via login link)
68
- #00FF00: request login link;
76
+ #00FF00:request login link;
69
77
floating note right: green: human/bots check required
70
78
: click on login link;
71
79
if() then (link valid)
@@ -86,14 +94,22 @@ case (reset password)
86
94
stop
87
95
endif
88
96
endswitch
89
-
90
97
@enduml
91
98
....
92
99
100
+ === Activity Diagram for Registration
93
101
[plantuml,registration-activity,svg]
94
102
....
95
103
@startuml
96
104
105
+ <style>
106
+ activityDiagram {
107
+ note {
108
+ BackgroundColor #00FF00
109
+ }
110
+ }
111
+ </style>
112
+
97
113
start
98
114
:fill registration form;
99
115
#00FF00:send registration request;
@@ -123,3 +139,27 @@ endif
123
139
124
140
@enduml
125
141
....
142
+
143
+ === Sequenzdiagramm for the Humancheck
144
+ [plantuml,humancheck-flow,svg]
145
+ ....
146
+ @startuml
147
+ actor user
148
+
149
+ user -> frontend : priviled action
150
+ frontend -> backend: whoami
151
+ backend -> frontend: returns list of roles
152
+ frontend -> frontend: captcha
153
+ note right
154
+ show when role 'HUMAN' is missing
155
+ end note
156
+
157
+ frontend -> backend: loginAsHuman
158
+ note right
159
+ use token from captcha as authorization grant
160
+ end note
161
+ backend -> frontend: establish human session
162
+
163
+ @enduml
164
+ ....
165
+ When the human session is established, all subsequent calls to the backend will have the role 'ROLE_HUMAN' sssigned.
0 commit comments