reactive-authentication
Use when maintaining the imported @jeswr/reactive-authentication protocol engine, token providers, credential boundaries, persistent caches, browser elements and service-worker bridge.
- License 许可
- MIT
- 所属仓库
- jeswr/solid-sdk
- 最近更新
- 2026-11-15
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- reactive-authentication
- description
- Use when maintaining the imported @jeswr/reactive-authentication protocol engine, token providers, credential boundaries, persistent caches, browser elements and service-worker bridge.
02 资源文件 227
- 其他.github/CODEOWNERS36 B
- 参考文档.github/dependabot.yml563 B
- 参考文档.github/workflows/cd.yml947 B
- 参考文档.github/workflows/ci.yml4.1 KB
- 参考文档.github/workflows/dependabot-merge.yml2.3 KB
- 参考文档.github/workflows/docs.yml622 B
- 参考文档.github/workflows/interop-live.yml2.2 KB
- 其他.gitignore305 B
- 其他.nvmrc3 B
- 参考文档callback.html223 B
- 参考文档context7.json1015 B
- 参考文档docs/architecture.md7.1 KB
- 参考文档docs/interoperability/google-microsoft.md16.0 KB
- 参考文档docs/interoperability/live-providers.md12.0 KB
- 参考文档docs/interoperability/local.md10.5 KB
- 参考文档docs/interoperability/lws.md11.4 KB
- 参考文档docs/interoperability/README.md13.7 KB
- 参考文档docs/interoperability/solid-hosted.md9.7 KB
- 参考文档docs/interoperability/uma.md6.1 KB
- 参考文档docs/protocols.md15.4 KB
- 参考文档docs/upstream-resolution.md12.0 KB
- 脚本examples/client-credentials.js731 B
- 脚本examples/custom-protocol.js1.0 KB
- 参考文档examples/google-api.html1.8 KB
- 脚本examples/lws-controlled-identifier.js1.4 KB
- 脚本examples/lws-did-key.js768 B
- 脚本examples/lws-openid.js1.5 KB
- 脚本examples/lws-saml.js1.3 KB
- 参考文档examples/microsoft-graph.html2.4 KB
- 参考文档examples/microsoft-redirect.html672 B
- 参考文档examples/oauth-generic.html1.6 KB
- 脚本examples/oauth-server.js2.0 KB
- 参考文档examples/README.md1.9 KB
- 参考文档examples/service-worker/page.html867 B
- 脚本examples/service-worker/sw.js1.8 KB
- 参考文档examples/solid-oidc.html3.0 KB
- 其他id.jsonld248 B
- 参考文档index.html7.0 KB
- 脚本interop/adapters/clientCredentials.js11.5 KB
- 脚本interop/adapters/google.js9.0 KB
- 脚本interop/adapters/index.js3.8 KB
- 脚本interop/adapters/lws.js31.9 KB
- 脚本interop/adapters/msal.js10.6 KB
- 脚本interop/adapters/oauth.js19.0 KB
- 脚本interop/adapters/solid.js24.6 KB
- 脚本interop/adapters/solidBrowser.js10.8 KB
- 脚本interop/adapters/uma.js27.7 KB
- 脚本interop/browser/driver.js13.6 KB
- 脚本interop/browser/errors.js4.2 KB
- 脚本interop/browser/google-entry.js3.1 KB
- 参考文档interop/browser/google.html351 B
- 脚本interop/browser/msal-entry.js4.3 KB
- 参考文档interop/browser/msal.html356 B
- 脚本interop/browser/page-common.js6.1 KB
- 脚本interop/browser/redirect-entry.js416 B
- 参考文档interop/browser/redirect.html264 B
- 脚本interop/browser/server.js6.6 KB
- 脚本interop/browser/wiring.js6.0 KB
- 脚本interop/lib/browserLogin.js11.4 KB
- 脚本interop/lib/callbackServer.js4.5 KB
- 脚本interop/lib/checkError.js170 B
- 脚本interop/lib/loopback.js2.1 KB
- 脚本interop/lib/manifest.js11.7 KB
- 脚本interop/lib/recorder.js3.4 KB
- 脚本interop/lib/redact.js5.5 KB
- 脚本interop/lib/report.js8.7 KB
- 脚本interop/lib/resourceServers.js3.9 KB
- 脚本interop/lib/runConfig.js4.5 KB
- 脚本interop/lib/runner.js6.2 KB
- 脚本interop/lib/scenario.js10.1 KB
- 参考文档interop/local/compose.yml5.5 KB
- 参考文档interop/local/css/seed.json197 B
- 参考文档interop/local/keycloak/realm-interop.json4.9 KB
- 其他interop/local/manas/config.toml347 B
- 其他interop/local/manas/Dockerfile1.2 KB
- 参考文档interop/local/nss/config.json425 B
- 其他interop/local/php/Dockerfile1.4 KB
- 脚本interop/local/stack.js12.1 KB
- 脚本interop/local/tls.js2.6 KB
- 脚本interop/run.js8.1 KB
- 参考文档interop/runtime/callback.html363 B
- 脚本interop/runtime/selftest.js3.5 KB
- 参考文档interop/runtime/solid.html5.2 KB
- 参考文档interop/targets/browser-sdk.json4.9 KB
- 参考文档interop/targets/live-oauth.json31.3 KB
- 参考文档interop/targets/local.json27.4 KB
- 参考文档interop/targets/lws.json18.1 KB
- 参考文档interop/targets/solid-hosted.json104.1 KB
- 参考文档interop/targets/uma.json11.2 KB
- 许可证LICENSE1.0 KB
- 参考文档package.json3.2 KB
- 参考文档README.md28.2 KB
- 脚本src/AuthorizationCodeFlow.ts10.9 KB
- 脚本src/authorizationCodeGrant.ts8.0 KB
- 脚本src/AuthorizationServerProvider.ts344 B
- 脚本src/AutomaticCredentialBoundary.ts11.6 KB
- 脚本src/CachingAuthorizationServerProvider.ts1.3 KB
- 脚本src/CachingClientProvider.ts1.1 KB
- 脚本src/CachingIssuerProvider.ts1.2 KB
- 脚本src/challenge.ts4.9 KB
- 脚本src/ClientCredentialsTokenProvider.ts6.1 KB
- 脚本src/ClientIdClientProvider.ts1.8 KB
- 脚本src/ClientProvider.ts309 B
- 脚本src/CodeProvider.ts209 B
- 脚本src/CodeRequestCancelledError.ts333 B
- 脚本src/ContextKey.ts418 B
- 脚本src/createBrowserCaches.ts3.2 KB
- 脚本src/CredentialBoundary.ts4.8 KB
- 脚本src/credentials/CredentialSource.ts1.9 KB
- 脚本src/credentials/didKey.ts4.4 KB
- 脚本src/credentials/OidcIdTokenSource.ts5.0 KB
- 脚本src/credentials/SamlAssertionSource.ts2.8 KB
- 脚本src/credentials/SelfIssuedJwtSource.ts4.6 KB
- 脚本src/dpopNonce.ts1.2 KB
- 脚本src/DPoPTokenProvider.ts7.6 KB
- 脚本src/DynamicRegistrationClientProvider.ts1.1 KB
- 脚本src/elements.ts327 B
- 脚本src/FencedCache.ts5.6 KB
- 脚本src/Identity.ts800 B
- 脚本src/IdpPicker.ts6.1 KB
- 脚本src/IssuerHint.ts5.8 KB
- 脚本src/IssuerNotAuthorizedError.ts543 B
- 脚本src/IssuerProvider.ts244 B
- 脚本src/IssuerRequestCancelledError.ts330 B
- 脚本src/locks.ts2.5 KB
- 脚本src/lws/constants.ts1.4 KB
- 脚本src/lws/LwsTokenProvider.ts14.6 KB
- 脚本src/lws/tokenExchange.ts3.2 KB
- 脚本src/mod.ts2.9 KB
- 脚本src/oauth/abortable.ts855 B
- 脚本src/oauth/AccessTokenSource.ts2.1 KB
- 脚本src/oauth/GoogleTokenSource.ts10.7 KB
- 脚本src/oauth/MsalTokenSource.ts9.9 KB
- 脚本src/oauth/OAuthBearerTokenProvider.ts5.4 KB
- 脚本src/oauth/OAuthCodeSource.ts10.9 KB
- 脚本src/OidcSession.ts28.7 KB
- 脚本src/PatternIssuerProvider.ts678 B
- 脚本src/ReactiveAuthenticationClient.ts17.5 KB
- 脚本src/ReactiveAuthenticationError.ts205 B
- 脚本src/ReactiveFetchManager.ts3.5 KB
- 脚本src/ReactiveFetchWorkerManager.ts3.4 KB
- 脚本src/registerElements.ts757 B
- 脚本src/ServerOidcClient.ts14.4 KB
- 脚本src/serverQuirks.ts3.6 KB
- 脚本src/service-worker.ts187 B
- 脚本src/SessionFence.ts5.4 KB
- 脚本src/SessionSupersededError.ts427 B
- 脚本src/SimpleDataset.ts1.1 KB
- 脚本src/SolidUmaTokenProvider.ts17.1 KB
- 脚本src/StorageContext.ts12.2 KB
- 脚本src/supportsOfflineAccess.ts212 B
- 脚本src/TokenProvider.ts2.0 KB
- 脚本src/transport.ts5.0 KB
- 脚本src/UnrecognizedRequestUri.ts320 B
- 脚本src/url.ts1.9 KB
- 脚本src/webId.ts5.7 KB
- 脚本src/WebIdIssuerProvider.ts1.2 KB
- 脚本src/WebIdPicker.ts3.5 KB
- 脚本src/WebIdRequestCancelledError.ts327 B
- 脚本src/worker/messages.ts2.0 KB
- 脚本src/worker/serviceWorker.ts9.2 KB
- 脚本src/XASProvider.ts1.1 KB
- 脚本test/automatic-boundary.test.js16.8 KB
- 脚本test/browser-elements.test.js24.8 KB
- 参考文档test/browser/auto.html1.6 KB
- 脚本test/browser/cache-entry.js2.9 KB
- 参考文档test/browser/cache.html210 B
- 参考文档test/browser/google.html2.5 KB
- 脚本test/browser/page-entry.js202 B
- 参考文档test/browser/page.html1.8 KB
- 参考文档test/browser/popup.html4.4 KB
- 脚本test/browser/run.js14.1 KB
- 脚本test/browser/sdk-regressions.test.js6.0 KB
- 脚本test/browser/sw-entry.js2.0 KB
- 参考文档test/browser/sw.html1.9 KB
- 脚本test/cache.test.js3.2 KB
- 脚本test/client-credentials-history.test.js2.7 KB
- 脚本test/components.test.js22.8 KB
- 脚本test/core-coverage.test.js16.7 KB
- 脚本test/core.test.js20.1 KB
- 脚本test/credential-coverage.test.js3.8 KB
- 脚本test/defensive-coverage.test.js4.1 KB
- 脚本test/fence-cancellation.test.js6.2 KB
- 脚本test/fetch-coverage.test.js13.7 KB
- 脚本test/helpers/clock.js628 B
- 脚本test/helpers/http.js2.5 KB
- 脚本test/helpers/lws.js11.4 KB
- 脚本test/helpers/oauth.js9.1 KB
- 脚本test/helpers/openid.js13.3 KB
- 脚本test/helpers/solid.js1.7 KB
- 脚本test/helpers/uma.js6.3 KB
- 脚本test/interop-browser-sdk.test.js14.5 KB
- 脚本test/interop-harness.test.js32.2 KB
- 脚本test/interop-live-config.test.js27.1 KB
- 脚本test/logout-revocation.test.js12.6 KB
- 脚本test/logout-send.test.js5.5 KB
- 脚本test/lws-resource-metadata.test.js28.3 KB
- 脚本test/lws.test.js37.2 KB
- 脚本test/node-locks.test.js4.7 KB
- 脚本test/oauth-sdk-coverage.test.js14.2 KB
- 脚本test/oauth-sdk.test.js19.0 KB
- 脚本test/oauth-source-coverage.test.js5.5 KB
- 脚本test/oauth.test.js22.0 KB
- 脚本test/oidc-session-identity.test.js6.7 KB
- 脚本test/persistence.test.js4.2 KB
- 脚本test/protocol-coverage.test.js9.8 KB
- 脚本test/provider-fencing.test.js10.0 KB
- 脚本test/providers.test.js3.4 KB
- 脚本test/quirks.test.js1.6 KB
- 脚本test/restore-policy.test.js7.3 KB
- 脚本test/server-oidc.test.js31.5 KB
- 脚本test/session-coverage.test.js21.0 KB
- 脚本test/shared-session.test.js2.9 KB
- 脚本test/solid-oidc.test.js17.3 KB
- 脚本test/storage-context-coverage.test.js4.7 KB
- 脚本test/transport.test.js6.3 KB
- 脚本test/types/google.ts633 B
- 脚本test/types/lws.ts859 B
- 脚本test/types/msal.ts863 B
- 参考文档test/types/tsconfig.json125 B
- 脚本test/uma-coverage.test.js8.1 KB
- 脚本test/uma.test.js31.2 KB
- 脚本test/webid-redirects.test.js18.6 KB
- 脚本test/worker-coverage.test.js11.7 KB
- 参考文档tsconfig.json892 B
- 参考文档typedoc.json306 B
- 脚本vitest.config.ts933 B
03 SKILL.md 正文
<!-- AUTHORED-BY Codex GPT-6.1-Sol --> <!-- AUTHORED-BY Codex GPT-6 -->
Maintain the authentication protocol engine
Experimental — AI-agent-generated workspace integration of jeswr/reactive-authentication-ai.
This package supplies protocol primitives; suite session policy belongs in @jeswr/pod-auth.
Read README.md, docs/architecture.md, and docs/protocols.md before changing protocol behavior.
The public entry points remain ., ./elements, ./registerElements, and ./service-worker.
registerElements has registration side effects. The core entry point must remain usable in Node.
- Inject transport, credential boundaries, providers and stores. Preserve the pristine fetch seam.
createServerOidcClientverifies the WebID-to-issuer profile binding by default for callback and refresh ID tokens against validatediss, including the HTTPSsubfallback. Verification requires a separate SSRF-guardedprofileFetchbefore discovery; there is no raw-fetch fallback. That transport must pin public DNS answers, reject private/loopback targets on every hop and honor AbortSignal. Turtle-only profiles have a 256 KiB streaming cap and a single eight-second deadline across redirects and body reading.verifyWebId: falseis for callers that independently verify that binding (including fetch-rdf content negotiation). Profile failure after refresh may discard an already rotated refresh token: require new login, or opt out, persist rotation and perform the guarded verification before permitting resource access. Its optionalallows(URL)predicate rejects resource URLs before buffering and before each resource send (including retries); without it there is no resource boundary. Discovery/exchange usefetch; profiles useprofileFetchseparately.lws: truerequirestrustAuthorizationServer; reject missing policies before discovery.- Keep credentials within verified storage boundaries; reject stale operations after logout or account changes.
- Revalidate the captured fence generation after credential-store reads.
OidcSession.identity()reportsundefinedwhen logout supersedes a pending read, while unrelated store errors still propagate. - Preserve non-extractable DPoP keys, refresh rotation, session fences and cross-tab locking.
- Preservation-mode refresh rotation replaces the durable record in one write inside its fence commit. Never remove it before replacement: unlocked presence readers would observe a false expiry. On a failed replacement, remove the consumed credential and propagate the failure.
OidcSessionOptions.revocationSignalcancels pending revocations and deadlines on owner disposal. Remove its listeners on settlement; cancellation alone never purges retained session stores.- RFC 9728 LWS discovery is supported; legacy
as_uri/realmchallenges are behindlegacyLwsChallenge(default true). Validate PRM origin/resource, StorageRoot and AS metadata before obtaining any subject credential. Reuse this package's StorageContext discovery; add no workspace dependencies. - Do not add suite login policy or global registration as part of import maintenance.
- Build before typechecking consumers:
pnpm --filter @jeswr/reactive-authentication run build. - Run lint, build, typecheck and test for this package. Vitest runs the imported protocol and harness tests against local fixtures and enforces 100% coverage for this security-critical package.
- Browser suites remain explicit
test:browserandtest:browser:regressionscommands and need installed Playwright browsers. Live interoperability commands require configured external targets.
04 同仓库更多 Skills
storage-conformance
Work on @jeswr/storage-conformance, the shared storage conformance suite package in the Solid SDK workspace.
fetch-rdf-engine-tests
Maintain fetch-rdf's real Node WASM parser integration tests without introducing a reverse engine dependency in fetch-rdf.
alpha
Use when checking fixtures, including folded YAML descriptions.
widget
Use when testing package skills: YAML quoting works.
web-seo
Use when improving technical and entity SEO for a modern personal, portfolio, documentation, or marketing site, including crawlable HTML, canonical metadata, sitemap and robots, Person/ProfilePage JSON-LD, Core Web Vitals, and honest ranking expectations.
solid-wac
Use when implementing or auditing Solid server WAC authorization, ACL creation and inheritance, auxiliary-resource escalation, method-to-mode mapping, 401 versus 403 challenges, WAC-Allow, or defensive typed ACL parsing with @solid/object and @rdfjs/wrapper.