Skip to content

Commit b91c45d

Browse files
author
Marc Gorzala
committed
human check
1 parent 223bba0 commit b91c45d

File tree

2 files changed

+45
-5
lines changed

2 files changed

+45
-5
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// other fancy stuff
33
buildscript {
44
dependencies {
5-
classpath 'org.asciidoctor:asciidoctorj-diagram:1.5.4.1'
5+
classpath 'org.asciidoctor:asciidoctorj-diagram:2.2.0'
66
}
77
}
88

src/main/jbake/content/documentation/dancer/src/04_solution_strategy.adoc

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,21 @@
4848
ResendEmailVerification --> PerformEmailVerification
4949
@enduml
5050
....
51-
foo
51+
52+
=== Activity diagramm for login
5253
[plantuml,login-activity,svg]
5354
....
5455
@startuml
56+
<style>
57+
activityDiagram {
58+
note {
59+
BackgroundColor #00FF00
60+
}
61+
}
62+
</style>
5563
5664
start
57-
switch (choose a login mode)
65+
switch ( choose a login mode )
5866
case (via login data)
5967
: enter username/password;
6068
if() then (login data valid)
@@ -65,7 +73,7 @@ case (via login data)
6573
stop
6674
endif
6775
case (via login link)
68-
#00FF00: request login link;
76+
#00FF00:request login link;
6977
floating note right: green: human/bots check required
7078
: click on login link;
7179
if() then (link valid)
@@ -86,14 +94,22 @@ case (reset password)
8694
stop
8795
endif
8896
endswitch
89-
9097
@enduml
9198
....
9299

100+
=== Activity Diagram for Registration
93101
[plantuml,registration-activity,svg]
94102
....
95103
@startuml
96104
105+
<style>
106+
activityDiagram {
107+
note {
108+
BackgroundColor #00FF00
109+
}
110+
}
111+
</style>
112+
97113
start
98114
:fill registration form;
99115
#00FF00:send registration request;
@@ -123,3 +139,27 @@ endif
123139
124140
@enduml
125141
....
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

Comments
 (0)