feat: swap @inrupt/solid-client-authn-browser for @uvdsl/solid-oidc-client-browser#275
Open
m5x5 wants to merge 3 commits into
Open
feat: swap @inrupt/solid-client-authn-browser for @uvdsl/solid-oidc-client-browser#275m5x5 wants to merge 3 commits into
m5x5 wants to merge 3 commits into
Conversation
…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>
…t parseable by jest/jsdom)
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
@inrupt/solid-client-authn-browserdependency with@uvdsl/solid-oidc-client-browser(the library recommended in Switch out authentication library #274).Session(WebWorkerSession) in a thin Inrupt-shape adapter living insrc/authSession/authSession.ts, so downstream call sites (SolidAuthnLogic,solidLogic,types, plus solid-ui's footer/header/login) keep their existingsession.info/session.events/session.fetch/session.login/session.logout/session.handleIncomingRedirectsurface — no consumer changes needed.SessionIDBfor refresh-token + DPoP-keypair persistence and the bundled SharedWorker for background refresh + cross-tab token sharing (the intended uvdsl architecture).@uvdsl/...in the webpack config so the SharedWorker URL is constructed in the consumer bundle (mashlib) with the rightpublicPath— bundling inline causes webpack to bake afile://worker URL the browser refuses to load.Refs #274
Coordinated PRs
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.