Skip to content

Commit

Permalink
Added simpler sequence diagram (#3)
Browse files Browse the repository at this point in the history
* Added simpler sequence diagram

* Don't cut off diagrams
  • Loading branch information
mdemare authored Aug 28, 2024
1 parent f143062 commit a9f7d7e
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 2 deletions.
4 changes: 4 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

p {
margin-bottom: 10px;

img {
max-height: 100% !important; /* ensure diagrams aren't cut off */
}
}

p,ol li,ul li {
Expand Down
2 changes: 1 addition & 1 deletion base-sequence.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion service-consumer.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ To get the ID and the URL of the Authorization Registry, the Service Consumer sh

To get the Bearer Token, the consumer must perform a token call on the Association Registry, passing a client assertion to them, containing the IDs of the consumer and the Association Registry.

#### Sequence Diagram
#### Sequence Diagram Without Authorization

![Sequence diagram](simple-base-sequence.svg)

#### Sequence Diagram With Pre-Authorization

![Sequence diagram](base-sequence.svg)
24 changes: 24 additions & 0 deletions simple-base-sequence.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@startuml

participant "Consumer" as consumer
participant "Association Register" as association
participant "Authorization Register (owner)" as ownerAr
participant "Resource (owner)" as ownerApi

consumer -> ownerApi : /token (get authentication token)
ownerApi -> ownerApi : check client assertion
ownerApi -> association : /token (get authentication token)
association -> association : check client assertion
association -> association : check owner still compliant
association -> ownerApi : OK: token
ownerApi -> association : /party (with token get consumer party information)
association -> association : check token
association -> ownerApi : OK: party info
ownerApi -> ownerApi : check consumer party info for compliance
ownerApi -> consumer : OK: token

consumer -> ownerApi : /some-resource (with token)
ownerApi -> ownerApi : check token
ownerApi -> consumer : OK: data

@enduml
1 change: 1 addition & 0 deletions simple-base-sequence.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a9f7d7e

Please sign in to comment.