-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4fecd8
commit 63928f9
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
```mermaid | ||
sequenceDiagram | ||
rect rgb(15, 100, 25) | ||
User->>CLJS SPA: Clicks "Fetch Secret" | ||
CLJS SPA->>ok2cry-cljs: postData | ||
end | ||
rect rgb(100, 50, 255) | ||
Note over ok2cry-cljs: Create key pair | ||
ok2cry-cljs->>ok2cry-clj: Make request,<br>includes public key | ||
end | ||
rect rgb(15, 100, 25) | ||
ok2cry-clj->> CLJ Service: Pass request, <br>without public key | ||
CLJ Service->>ok2cry-clj: Send response | ||
end | ||
rect rgb(100, 50, 255) | ||
Note over ok2cry-clj: Encrypt response<br>using public key | ||
ok2cry-clj->>ok2cry-cljs: Send encrypted<br>data | ||
Note over ok2cry-cljs: Decrypt data<br>using private key | ||
Note over ok2cry-cljs: Destroy key pair | ||
end | ||
rect rgb(15, 100, 25) | ||
ok2cry-cljs->>CLJS SPA: postData response | ||
CLJS SPA->>User: Show data | ||
end | ||
``` |