Skip to content

feat: swap @inrupt/solid-client-authn-browser for @uvdsl/solid-oidc-client-browser#275

Open
m5x5 wants to merge 3 commits into
SolidOS:mainfrom
m5x5:feat/swap-to-uvdsl-auth
Open

feat: swap @inrupt/solid-client-authn-browser for @uvdsl/solid-oidc-client-browser#275
m5x5 wants to merge 3 commits into
SolidOS:mainfrom
m5x5:feat/swap-to-uvdsl-auth

Conversation

@m5x5
Copy link
Copy Markdown

@m5x5 m5x5 commented May 18, 2026

Summary

  • Replaces the @inrupt/solid-client-authn-browser dependency with @uvdsl/solid-oidc-client-browser (the library recommended in Switch out authentication library #274).
  • Wraps uvdsl's default Session (WebWorkerSession) in a thin Inrupt-shape adapter living in src/authSession/authSession.ts, so downstream call sites (SolidAuthnLogic, solidLogic, types, plus solid-ui's footer/header/login) keep their existing session.info/session.events/session.fetch/session.login/session.logout/session.handleIncomingRedirect surface — no consumer changes needed.
  • Uses uvdsl's SessionIDB for refresh-token + DPoP-keypair persistence and the bundled SharedWorker for background refresh + cross-tab token sharing (the intended uvdsl architecture).
  • Externalizes @uvdsl/... in the webpack config so the SharedWorker URL is constructed in the consumer bundle (mashlib) with the right publicPath — bundling inline causes webpack to bake a file:// worker URL the browser refuses to load.

Refs #274

Coordinated PRs

  • SolidOS/mashlib — webpack output config so the worker + dynamic chunks land under a known subfolder
  • SolidOS/css-mashlib — StaticAssetEntry + ACL serving that subfolder

Verified end-to-end against a local CSS pod: fresh login + multiple reloads keep the user logged in via uvdsl's RefreshTokenGrant, no ?code= redirect round-trip, no console errors.

m5x5 and others added 3 commits May 18, 2026 20:58
…lient-browser

Wraps uvdsl's default WebWorkerSession in a thin Inrupt-shape adapter
inside authSession.ts so downstream call sites (panes, solid-ui) keep
working unchanged. The SharedWorker provides background token refresh
and cross-tab token sharing — the intended uvdsl usage for web apps.

Refs SolidOS#274

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant