Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
9fa7497
Draft outline
RichardJECooke Oct 7, 2025
c0b7b64
english
RichardJECooke Oct 7, 2025
58233d7
save
RichardJECooke Oct 8, 2025
07a1a80
explaining tmb security
RichardJECooke Oct 8, 2025
1190dfc
security and dpop done
RichardJECooke Oct 8, 2025
de1ed3d
added when to use tmb
RichardJECooke Oct 9, 2025
b078822
summary done
RichardJECooke Oct 9, 2025
1be337e
start the backend
RichardJECooke Oct 9, 2025
7a5cdc3
work on setting up demo
RichardJECooke Oct 9, 2025
88a84a8
run the example app and screenshots
RichardJECooke Oct 10, 2025
4d9175e
code discussed. last step is explaining the tmb flow
RichardJECooke Oct 10, 2025
3b50860
save
RichardJECooke Oct 10, 2025
624ea27
start mermaid diagram
RichardJECooke Oct 13, 2025
22f3eb1
add mermaid diagram
RichardJECooke Oct 13, 2025
6681f0c
rename article. capital headings
RichardJECooke Oct 13, 2025
83171dc
remove todos
RichardJECooke Oct 13, 2025
4d4b950
editing
RichardJECooke Oct 13, 2025
dc8f0d7
edit
RichardJECooke Oct 13, 2025
3919b53
llm proofread
RichardJECooke Oct 13, 2025
86d9d71
edit
RichardJECooke Oct 13, 2025
b9f43f5
updates
rideam Oct 20, 2025
ea0b7f6
fix
rideam Oct 20, 2025
8b3ba94
Optimize images
ritza-publishing-assistant[bot] Oct 20, 2025
ef5611d
update BBOC link
rideam Oct 21, 2025
879cbe6
Edit: Token-Mediating Backend: An alternative to the BFF architecture
bethh0rn Oct 27, 2025
2f3303a
Proofread: Token-Mediating Backend: An alternative to the BFF archite…
bethh0rn Oct 28, 2025
4376e5f
Merge pull request #318 from ritza-co/edit_authArchitecturePart2TMB
bethh0rn Oct 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
232 changes: 232 additions & 0 deletions astro/src/content/blog/auth-architecture-part2-TMB.mdx

Large diffs are not rendered by default.

Binary file added astro/src/content/blog/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
import Diagram from "../../../components/mermaid/SequenceDiagram.astro";
const { alt } = Astro.props;

//language=Mermaid
const diagram = `
sequenceDiagram

%%{init:{"themeVariables": { "noteBkgColor":"transparent", "noteTextColor":"transparent", "noteBorderColor":"transparent" }}}%%
actor U as User
participant B as Browser
participant F as Static file host
participant T as TMB
participant R as Resource server

U->>B: Visit website
B->>F: Request website
F->>B: Send HTML, CSS, JS

B->>T: Is there an active session (include session cookie)?
T->>B: Yes, here is your access token

U->>B: Make a purchase
B->>R: Make a purchase (include access token)
`;
---
<Diagram code={diagram} alt={alt}/>

Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
import Diagram from "../../../components/mermaid/SequenceDiagram.astro";
const { alt } = Astro.props;

//language=Mermaid
const diagram = `
sequenceDiagram

%%{init:{"themeVariables": { "noteBkgColor":"transparent", "noteTextColor":"transparent", "noteBorderColor":"transparent" }}}%%
participant B as Browser
participant T as TMB
participant A as Authorization Endpoint <br/>(FusionAuth)
participant O as Token Endpoint <br/>(FusionAuth)
participant R as Resource server

B->>T: Is there an active session?
T->>B: No

B->>T: Start Authorization Code flow with PKCE extension
B->>A: Redirected to log in on this web page
A->>B: Returns authorization code
B->>T: Send code
T->>O: Send PKCE verifier and code
O->>T: Return refresh token and access token
T->>B: Return access token and session cookie

B->>R: Make a purchase (include access token)
`;
---
<Diagram code={diagram} alt={alt}/>