René's URL Explorer Experiment


Title: feat(auth): public getAgent accessor — request → WebID (#584) by melvincarvalho · Pull Request #586 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub

Open Graph Title: feat(auth): public getAgent accessor — request → WebID (#584) by melvincarvalho · Pull Request #586 · JavaScriptSolidServer/JavaScriptSolidServer

X Title: feat(auth): public getAgent accessor — request → WebID (#584) by melvincarvalho · Pull Request #586 · JavaScriptSolidServer/JavaScriptSolidServer

Description: Closes #584. Second seam from the plugin-zero work (#206), following the pattern #582/#585 set: smallest change, contract test, real consumer waiting. What auth.js at the package root — the stable public import for applications that authenticate their own traffic: import { getAgent } from 'javascript-solid-server/auth.js'; const webId = await getAgent(request); // string | null Thin wrapper over getWebIdFromRequestAsync, so it uniformly covers every token scheme the server itself accepts (IdP Bearer, Solid-OIDC DPoP, Nostr NIP-98, LWS10-CID) and never throws on bad credentials. Authentication only, deliberately not authorization — apps under an appPaths prefix (#582) own their own permissioning. Why a root file main (src/index.js) starts a server on import — unusable as an export surface Adding an exports map would lock down every existing deep import — too invasive for this files is unset, so the root file ships in the npm tarball, and javascript-solid-server/auth.js resolves everywhere Everything under src/ stays internal and free to refactor; auth.js is the contract. When the #206 loader lands, api.auth.getAgent hands plugins this same function. Tests test/auth-agent.test.js pins the contract: anonymous → null, malformed credentials → null (never a throw), real IdP Bearer token → the account's WebID. Scheme-specific coverage stays with the existing auth suites. Full suite: 1006 pass. Consumer The Tideholm plugin-zero adapter migrates onto this import the moment it's published (per #584's acceptance list) — removing the last internal-path import in the reference plugin.

Open Graph Description: Closes #584. Second seam from the plugin-zero work (#206), following the pattern #582/#585 set: smallest change, contract test, real consumer waiting. What auth.js at the package root — the stable ...

X Description: Closes #584. Second seam from the plugin-zero work (#206), following the pattern #582/#585 set: smallest change, contract test, real consumer waiting. What auth.js at the package root — the stable ...

Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:96822b88-1802-2338-afba-9f26baa4254a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB8C6:2A7CD2:62B9EC:8219B2:6B038BE8
html-safe-nonce62b5bd77026c618f641064aa001d793209970e4bb306a99a81a7066e179f0d98
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEM2OjJBN0NEMjo2MkI5RUM6ODIxOUIyOjZCMDM4QkU4IiwidmlzaXRvcl9pZCI6IjUyMDA0NzU2MjIxNzgyNjE5OTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1f66bad1f57d3fd7b227bbea4adb75429624b1b10a85f6cba003795bac879cdb
hovercard-subject-tagpull_request:4030151930
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files
twitter:imagehttps://avatars.githubusercontent.com/u/65864?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/65864?s=400&v=4
og:image:altCloses #584. Second seam from the plugin-zero work (#206), following the pattern #582/#585 set: smallest change, contract test, real consumer waiting. What auth.js at the package root — the stable ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git
octolytics-dimension-user_id205442424
octolytics-dimension-user_loginJavaScriptSolidServer
octolytics-dimension-repository_id958025407
octolytics-dimension-repository_nwoJavaScriptSolidServer/JavaScriptSolidServer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id958025407
octolytics-dimension-repository_network_root_nwoJavaScriptSolidServer/JavaScriptSolidServer
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fpull%2F586%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fpull%2F586%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=JavaScriptSolidServer%2FJavaScriptSolidServer
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Codehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Issues165 (165)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues
Pull requests14 (14)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pulls
Actionshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/actions
Projectshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/projects
Security and qualityhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/security
Insightshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/insights
Sign up for GitHub https://github.com/signup?return_to=%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2Fnew%2Fchoose
melvincarvalhohttps://github.com/melvincarvalho
gh-pageshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/tree/gh-pages
get-agent-584https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/tree/get-agent-584
Conversation 20 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586
Commits 6 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/commits
Checks 0 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/checks
Files changed https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files
feat(auth): public getAgent accessor — request → WebID (#584) https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files#top
Show all changes 6 commits https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files
033926f feat(auth): public getAgent accessor — request → WebID (#584) melvincarvalho Jul 10, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/commits/033926f70407ef744a92387861c06ed93a5e0800
096288b review: real issuer in the IdP test; JSDoc states full request shape melvincarvalho Jul 10, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/commits/096288b1c9804e294de68ba8f618bd64a87a483f
6be1ffa review: getAgent contract is agent identifier, not strictly WebID melvincarvalho Jul 10, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/commits/6be1ffabe93d3aa1d13f7d24e884409ddcf5e2ce
aea29b5 review: doc lists WebID-TLS; credentials test asserts status before p… melvincarvalho Jul 10, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/commits/aea29b55677ccbf9fe1d09855917e59136543952
cee5b5f review: test header matches the agent-identifier contract melvincarvalho Jul 10, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/commits/cee5b5fb6ffbbc58298ad5553cb572ef522e7904
a0f212e review: port probe rejects on listen error instead of hanging melvincarvalho Jul 10, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/commits/a0f212e042a2355d02fdcc0761c11847f5970a78
Clear filters https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files
auth.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files#diff-5ff2507a8ad4c1a14418d0d243e99d6bbe430a747dae4b9f10877afd16f7f253
configuration.md https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files#diff-17ed18489a956f326ec0fe4040850c5bc9261d4631fb42da4c52891d74a59180
auth-agent.test.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files#diff-8e8df98497dc1a962c5c3c55cab31cdbd2ee975c282a25bdef5737b95e67152a
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/gh-pages/.github/CODEOWNERS#L12
auth.jshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files#diff-5ff2507a8ad4c1a14418d0d243e99d6bbe430a747dae4b9f10877afd16f7f253
View file https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/a0f212e042a2355d02fdcc0761c11847f5970a78/auth.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/{{ revealButtonHref }}
melvincarvalhohttps://github.com/melvincarvalho
Jul 10, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files#r3559867407
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/gh-pages/.github/CODEOWNERS#L12
docs/configuration.mdhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files#diff-17ed18489a956f326ec0fe4040850c5bc9261d4631fb42da4c52891d74a59180
View file https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/a0f212e042a2355d02fdcc0761c11847f5970a78/docs/configuration.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/{{ revealButtonHref }}
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files#diff-17ed18489a956f326ec0fe4040850c5bc9261d4631fb42da4c52891d74a59180
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files#diff-17ed18489a956f326ec0fe4040850c5bc9261d4631fb42da4c52891d74a59180
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/gh-pages/.github/CODEOWNERS#L12
test/auth-agent.test.jshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files#diff-8e8df98497dc1a962c5c3c55cab31cdbd2ee975c282a25bdef5737b95e67152a
View file https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/a0f212e042a2355d02fdcc0761c11847f5970a78/test/auth-agent.test.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/{{ revealButtonHref }}
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/586/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.