Skip to content

Commit

Permalink
human check
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Gorzala committed Jun 2, 2022
1 parent 223bba0 commit b91c45d
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// other fancy stuff
buildscript {
dependencies {
classpath 'org.asciidoctor:asciidoctorj-diagram:1.5.4.1'
classpath 'org.asciidoctor:asciidoctorj-diagram:2.2.0'
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,21 @@
ResendEmailVerification --> PerformEmailVerification
@enduml
....
foo

=== Activity diagramm for login
[plantuml,login-activity,svg]
....
@startuml
<style>
activityDiagram {
note {
BackgroundColor #00FF00
}
}
</style>
start
switch (choose a login mode)
switch ( choose a login mode )
case (via login data)
: enter username/password;
if() then (login data valid)
Expand All @@ -65,7 +73,7 @@ case (via login data)
stop
endif
case (via login link)
#00FF00: request login link;
#00FF00:request login link;
floating note right: green: human/bots check required
: click on login link;
if() then (link valid)
Expand All @@ -86,14 +94,22 @@ case (reset password)
stop
endif
endswitch
@enduml
....

=== Activity Diagram for Registration
[plantuml,registration-activity,svg]
....
@startuml
<style>
activityDiagram {
note {
BackgroundColor #00FF00
}
}
</style>
start
:fill registration form;
#00FF00:send registration request;
Expand Down Expand Up @@ -123,3 +139,27 @@ endif
@enduml
....

=== Sequenzdiagramm for the Humancheck
[plantuml,humancheck-flow,svg]
....
@startuml
actor user
user -> frontend : priviled action
frontend -> backend: whoami
backend -> frontend: returns list of roles
frontend -> frontend: captcha
note right
show when role 'HUMAN' is missing
end note
frontend -> backend: loginAsHuman
note right
use token from captcha as authorization grant
end note
backend -> frontend: establish human session
@enduml
....
When the human session is established, all subsequent calls to the backend will have the role 'ROLE_HUMAN' sssigned.

0 comments on commit b91c45d

Please sign in to comment.