ext-apps/examples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Olivier Chafik 0ffe16781e
lazy-auth-server: support mounting under a base path (#683)
* lazy-auth-server: support mounting under a base path

createApp() previously built every advertised URL (AS metadata
endpoints, PRM resource, WWW-Authenticate resource_metadata, consent
approve link, elicitation callbacks) from the bare origin, so mounting
the app inside another Express app — app.use("/lazy-auth",
createApp()) — advertised URLs that pointed at the host's root and
collided with the host's own OAuth endpoints.

Derive the public base URL from Express's req.baseUrl instead (empty
when standalone, so standalone behavior is unchanged), and treat
PUBLIC_URL as including any mount path. Document the mounting pattern,
including the root well-known rewrite hosts must add for RFC 8414/9728
path-insertion discovery.

* lazy-auth-server: derive DIST_DIR from import.meta.url

import.meta.filename and import.meta.dirname are undefined in some
module-VM contexts (e.g. importing this package from jest), which made
createApp() throw at import time. import.meta.url is defined
everywhere; derive the dist directory from it instead.
2026-06-04 19:47:57 +01:00
..
basic-host chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
basic-server-preact chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
basic-server-react chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
basic-server-solid chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
basic-server-svelte chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
basic-server-vanillajs chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
basic-server-vue chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
budget-allocator-server chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
cohort-heatmap-server chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
customer-segmentation-server chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
debug-server chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
integration-server chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
lazy-auth-server lazy-auth-server: support mounting under a base path (#683) 2026-06-04 19:47:57 +01:00
map-server chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
pdf-server chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
qr-server chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
quickstart chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
say-server chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
scenario-modeler-server chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
shadertoy-server chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
sheet-music-server chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
system-monitor-server chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
threejs-server chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
transcript-server chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
video-resource-server chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
wiki-explorer-server chore: bump ext-apps to 1.7.3 (#680) 2026-06-01 12:10:47 +01:00
run-all.ts add EXAMPLE=folder-name support for tests & basic-host (#292) 2026-01-19 20:16:37 +00:00