Title: /idp landing 'Create Account' button leads to 403 in single-user mode · Issue #290 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: /idp landing 'Create Account' button leads to 403 in single-user mode · Issue #290 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: /idp landing 'Create Account' button leads to 403 in single-user mode · Issue #290 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Symptom On a server started with `--single-user`, the `/idp` landing page (added in #287) renders the Create Account button pointing at `/idp/register`. Clicking it returns a 403 with the message "Registration Disabled / This server is r...
Open Graph Description: Symptom On a server started with `--single-user`, the `/idp` landing page (added in #287) renders the Create Account button pointing at `/idp/register`. Clicking it returns a 403 with the message "...
X Description: Symptom On a server started with `--single-user`, the `/idp` landing page (added in #287) renders the Create Account button pointing at `/idp/register`. Clicking it returns a 403 with the message &...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/290
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"/idp landing 'Create Account' button leads to 403 in single-user mode","articleBody":"## Symptom\n\nOn a server started with \\`--single-user\\`, the \\`/idp\\` landing page (added in #287) renders the **Create Account** button pointing at \\`/idp/register\\`. Clicking it returns a 403 with the message \\\"Registration Disabled / This server is running in single-user mode. Registration is not available.\\\" — see \\`src/idp/index.js\\` lines 283–296.\n\nSo the landing's primary CTA is a dead-end in the most common JSS deployment shape.\n\nReproduction (using a public deployment): https://melvin.me/idp → click Create Account → 403.\n\n## Why this matters\n\nSingle-user mode is JSS's default for personal pods (\\`--single-user --single-user-name \u003cname>\\` is what most operators use). The landing page is otherwise correct and useful — only the primary button needs to know about the deployment shape.\n\n## Proposed fix\n\nThread the \\`singleUser\\` flag from \\`idp/index.js\\` into \\`landingPage(ctx)\\` (already takes a \\`ctx\\` object). When \\`singleUser\\` is truthy, render a different primary affordance:\n\n\\`\\`\\`\nThis server runs in single-user mode — only one account is configured.\n[ Sign In ] ← when standalone /idp/login lands; for now, just a sign-in note\n\\`\\`\\`\n\nOr in the immediate term: hide the Create Account button entirely and surface only the sign-in note.\n\nEither way, no 403 from the landing's main CTA.\n\n## Scope\n\n- \\`src/idp/index.js\\`: pass \\`singleUser\\` into the \\`landingPage\\` ctx (~3 lines).\n- \\`src/idp/views.js\\`: branch the button rendering on \\`ctx.singleUser\\` (~10 lines).\n- \\`test/idp.test.js\\`: add a single-user variant of the landing test that asserts no link to \\`/idp/register\\` (~15 lines).\n\nTrivial PR.\n\n## Non-goals\n\n- Auto-login (closed in #286).\n- Standalone \\`/idp/login\\` (closed in #286).\n- Reworking the landing layout — only the button area changes.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-04-22T03:00:42Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/290"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:022fb1ed-d79d-7177-e7f7-85716f80c709 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B462:1F40:B1B926:E330E2:6B03B8DC |
| html-safe-nonce | 86484e357b43f4eff261041c185b29f89f12b1006db98b98db5d014585551f13 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDYyOjFGNDA6QjFCOTI2OkUzMzBFMjo2QjAzQjhEQyIsInZpc2l0b3JfaWQiOiIxNDU5NTg3MDIwMzU0NzMwMjA1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ae9acf3c1984f6c80e69d346264b3529f44d52dc8399af8771a85700141116fb |
| hovercard-subject-tag | issue:4306457027 |
| 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/JavaScriptSolidServer/JavaScriptSolidServer/290/issue_layout |
| twitter:image | https://opengraph.githubassets.com/43a35d246bb7486ac40cec7e4d818d574cf05e29b756f7d715aaa6e1980f63aa/JavaScriptSolidServer/JavaScriptSolidServer/issues/290 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/43a35d246bb7486ac40cec7e4d818d574cf05e29b756f7d715aaa6e1980f63aa/JavaScriptSolidServer/JavaScriptSolidServer/issues/290 |
| og:image:alt | Symptom On a server started with `--single-user`, the `/idp` landing page (added in #287) renders the Create Account button pointing at `/idp/register`. Clicking it returns a 403 with the message "... |
| 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 | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width