Repository navigation
Migrate Nuxt keycloak-js example to Nuxt 4 and keycloak-js 26 - #33
Closed
Wictorgirardi wants to merge 2 commits into
Closed
Wictorgirardi wants to merge 2 commits into
Wictorgirardi wants to merge 2 commits into
Conversation
Contributor
Author
|
Combined into #44 with the other SPA examples. The changes are the same; only the commit SHAs differ. |
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.
Depends on #28: this branch includes its commit, so review the last commit only until #28 is merged.
Summary
app/directory layout, TypeScript 6.0 (nuxt typecheck),@nuxt/eslintwith ESLint 10, and Tailwind CSS 4 through@tailwindcss/vite. The PostCSS setup,tailwind.config.jsand the pnpmshamefully-hoist.npmrcare gone, and@nuxt/devtools: "latest"is no longer pinned.app/plugins/keycloak.client.ts:initbefore the app renders, so the logged-out UI no longer flashes.check-ssowith a silent check page (public/silent-check-sso.html) instead of a full-page round trip on every load, plus PKCE S256 andcheckLoginIframe: false.onTokenExpired; it was never refreshed before.provide.runtimeConfig.public(NUXT_PUBLIC_KEYCLOAK_URL,_REALM,_CLIENT_ID) instead of hardcoded values..env.exampletargets the local Keycloak from Add shared CI workflows, local Keycloak and contributing guide #28.useKeycloak()holds it inuseState, and logout redirects back to the app.app.vuerenders<NuxtLayout><NuxtPage/>. Before, the pages and layout were dead code.iconify-iconandjwt-decode, since keycloak-js already provides parsed tokens).<script setup>everywhere, and thehtmlForReact-isms are fixed.packageManager(withonlyBuiltDependencies), Node 24. The workflow calls the shared CI and deploy workflows.Test plan
pnpm install --frozen-lockfile && pnpm typecheck && pnpm lint && pnpm buildpass on Node 24; the build produces.vercel/output.tools/e2e-smokepasses against the local Keycloak: log in, decoded tokens shown, log out.check-sso.