Title: feature: support both WebID-TLS and Solid-OIDC authentication simultaneously · Issue #1844 · nodeSolidServer/node-solid-server · GitHub
Open Graph Title: feature: support both WebID-TLS and Solid-OIDC authentication simultaneously · Issue #1844 · nodeSolidServer/node-solid-server
X Title: feature: support both WebID-TLS and Solid-OIDC authentication simultaneously · Issue #1844 · nodeSolidServer/node-solid-server
Description: Summary Currently NSS only supports one authentication method at a time (--auth tls OR --auth oidc). It would be valuable to support both simultaneously. Current Behavior // lib/create-app.mjs:335-339 const auth = argv.forceUser ? 'force...
Open Graph Description: Summary Currently NSS only supports one authentication method at a time (--auth tls OR --auth oidc). It would be valuable to support both simultaneously. Current Behavior // lib/create-app.mjs:335-...
X Description: Summary Currently NSS only supports one authentication method at a time (--auth tls OR --auth oidc). It would be valuable to support both simultaneously. Current Behavior // lib/create-app.mjs:335-...
Opengraph URL: https://github.com/nodeSolidServer/node-solid-server/issues/1844
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feature: support both WebID-TLS and Solid-OIDC authentication simultaneously","articleBody":"## Summary\n\nCurrently NSS only supports one authentication method at a time (`--auth tls` OR `--auth oidc`). It would be valuable to support both simultaneously.\n\n## Current Behavior\n\n```javascript\n// lib/create-app.mjs:335-339\nconst auth = argv.forceUser ? 'forceUser' : argv.auth\nif (!(auth in API.authn)) {\n throw new Error(`Unsupported authentication scheme: ${auth}`)\n}\nawait API.authn[auth].initialize(app, argv) // Only ONE method initialized\n```\n\n## Proposed Behavior\n\nInitialize both auth handlers and let them chain naturally:\n\n```javascript\nasync function initAuthentication(app, argv) {\n // Initialize both handlers\n await API.authn.oidc.initialize(app, argv)\n await API.authn.tls.initialize(app, argv)\n}\n```\n\nThe handlers already call `next()` when they don't find their credentials, so they'd naturally fall through to the next method.\n\n## Benefits\n\n1. **Flexibility** - Different clients can use different auth methods against the same server\n2. **Migration path** - Users can transition gradually between auth methods\n3. **Spec compliance** - Solid doesn't mandate one auth method over another\n4. **Client compatibility** - Legacy TLS clients and modern OIDC clients work together\n\n## Implementation\n\nThe change is minimal:\n- Remove the either/or logic in `initAuthentication()`\n- Initialize both handlers (or make it configurable: `--auth oidc,tls`)\n- Auth chain: OIDC → TLS → anonymous\n\n## Prior Art\n\nJavaScriptSolidServer (JSS) already supports this - it tries auth methods in sequence:\n1. Solid-OIDC (DPoP tokens)\n2. WebID-TLS (client certificates) \n3. Bearer tokens\n\nWorks well and provides maximum flexibility.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-01-08T23:18:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1844/node-solid-server/issues/1844"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3da54c76-5962-f874-9318-1ff6bc54dd77 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9AFA:25D46C:59BCC1:742F35:6973075B |
| html-safe-nonce | 9bd695fac798c776d4ff11c8db61b058d481e05d802598c82c08bf483723bed4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUZBOjI1RDQ2Qzo1OUJDQzE6NzQyRjM1OjY5NzMwNzVCIiwidmlzaXRvcl9pZCI6IjM5MzUyMjIwODI1OTY3MDIwNDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3d4a66ba96e202cfa7265da013490cacb0eaabcf1ca2d1ffd627011b4f4bdc50 |
| hovercard-subject-tag | issue:3794805565 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodeSolidServer/node-solid-server/1844/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f6290c8abb19f7a99d3c9c4ce4020492d9329831c034cd2d34b21a51a5bac97e/nodeSolidServer/node-solid-server/issues/1844 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f6290c8abb19f7a99d3c9c4ce4020492d9329831c034cd2d34b21a51a5bac97e/nodeSolidServer/node-solid-server/issues/1844 |
| og:image:alt | Summary Currently NSS only supports one authentication method at a time (--auth tls OR --auth oidc). It would be valuable to support both simultaneously. Current Behavior // lib/create-app.mjs:335-... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 44ab3188c1dcfe3be0f9c3feca2e04e14fb79f120939ce2395e4f15ab96ec1d4 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodeSolidServer/node-solid-server git https://github.com/nodeSolidServer/node-solid-server.git |
| octolytics-dimension-user_id | 104446421 |
| octolytics-dimension-user_login | nodeSolidServer |
| octolytics-dimension-repository_id | 24306004 |
| octolytics-dimension-repository_nwo | nodeSolidServer/node-solid-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24306004 |
| octolytics-dimension-repository_network_root_nwo | nodeSolidServer/node-solid-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a5e2b48bd1260476599758f5d253b5d24092ab84 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width