Repository navigation
Restore Keycloak authentication flow diagrams and themed rendering - #1844
Merged
David Pine (IEvangelist) merged 3 commits intoOct 16, 2026
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
David Pine (IEvangelist)
requested a review
from Eric Erhardt (eerhardt)
as a code owner
October 8, 2026 13:07
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The documented flows require cookie persistence and token-forwarding configuration absent from the accompanying example.
1 open finding
What changed in this PR
Restores themed Keycloak authentication diagrams and fixes development image-cache invalidation.
Changes:
- Adds light/dark diagrams and editable Excalidraw source.
- Embeds diagrams using
ThemeImage. - Adds content-hash URL versioning and regression coverage.
| File | Description |
|---|---|
src/frontend/src/components/ThemeImage.astro |
Versions development image URLs by content hash. |
src/frontend/tests/unit/custom-components.vitest.test.ts |
Tests stable and updated image URLs. |
src/frontend/src/content/docs/integrations/security/keycloak.mdx |
Adds authentication-flow explanations and diagrams. |
src/frontend/src/assets/integrations/security/keycloak/auth-flow-diagram.excalidraw |
Provides editable diagram source. |
src/frontend/src/assets/integrations/security/keycloak/auth-flow-diagram.png |
Adds dark separate-API diagram. |
src/frontend/src/assets/integrations/security/keycloak/auth-flow-diagram-light.png |
Adds light separate-API diagram. |
src/frontend/src/assets/integrations/security/keycloak/simple-auth-flow-diagram.png |
Adds dark combined-backend diagram. |
src/frontend/src/assets/integrations/security/keycloak/simple-auth-flow-diagram-light.png |
Adds light combined-backend diagram. |
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
|
|
||
| ### Authentication flows | ||
|
|
||
| When the backend also serves the API, the browser signs in through Keycloak and uses an authentication cookie for subsequent requests to the backend: |
Contributor
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
David Pine (IEvangelist)
enabled auto-merge (squash)
October 16, 2026 12:29
Eric Erhardt (eerhardt)
approved these changes
Oct 16, 2026
David Pine (IEvangelist)
deleted the
ievangelist-restore-keycloak-auth-diagrams
branch
October 16, 2026 14:33
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
-lightfor the light variants and the existingThemeImagecomponent in the article.Background
The original diagrams lived in
dotnet/docs-aspire/docs/authentication/media/and were omitted when the Keycloak integration article migrated to aspire.dev in #49. Their source and images are recovered from dotnet/docs-aspire commit1f1a76339b3f22c99ea2060f42ba72361d9728f9.The diagram exports were updated together from the recovered source. Embedded browser and Keycloak logos retain their original colors.
Development cache fix
Astro's development image endpoint sends a one-year cache lifetime, while its local source URLs remain unchanged when image contents change. This allowed a cached dark export to show old thick borders next to a newly rendered light export.
ThemeImagenow versions local/@fs/source URLs with a SHA-256 content revision during development. Unchanged images retain stable URLs; editing either image changes its URL. Production image handling remains unchanged.Verification
ThemeImagecomponent tests pass, including stable URLs for unchanged image bytes and changed URLs for updated bytes.