Title: IDP needs a human-navigable entry: standalone /idp/login + /idp landing · Issue #286 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: IDP needs a human-navigable entry: standalone /idp/login + /idp landing · Issue #286 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: IDP needs a human-navigable entry: standalone /idp/login + /idp landing · Issue #286 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Problem The IDP currently has no human-friendly entry point. Every URL assumes you're already in an OIDC flow: `/idp/auth` without `client_id` → `Authentication Error: invalid_request, missing required parameter 'client_id'`. Hard wall. ...
Open Graph Description: Problem The IDP currently has no human-friendly entry point. Every URL assumes you're already in an OIDC flow: `/idp/auth` without `client_id` → `Authentication Error: invalid_request, missing requ...
X Description: Problem The IDP currently has no human-friendly entry point. Every URL assumes you're already in an OIDC flow: `/idp/auth` without `client_id` → `Authentication Error: invalid_request, missing ...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/286
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IDP needs a human-navigable entry: standalone /idp/login + /idp landing","articleBody":"## Problem\n\nThe IDP currently has **no human-friendly entry point**. Every URL assumes you're already in an OIDC flow:\n\n- \\`/idp/auth\\` without \\`client_id\\` → \\`Authentication Error: invalid_request, missing required parameter 'client_id'\\`. Hard wall.\n- \\`/idp/interaction/:uid\\` requires a UID provisioned by an in-flight OIDC interaction.\n- \\`/idp/register\\` works standalone, but its \\\"Already have an account? Sign In\\\" link points at \\`/idp/auth\\` — i.e. straight back into the broken-without-client_id error.\n\nSo a fresh visitor to \\`https://jss.live/idp\\` (or any of the above) has nothing to do except register. After registering, they get bounced to the same dead links.\n\n## Proposal\n\nThree small surfaces, designed together:\n\n### 1. \\`GET /idp\\` — friendly landing\n\nPlain HTML card, two buttons: **Sign In** and **Create Account**. Same visual treatment as the new register page (gradient header, etc). No OIDC plumbing — just navigation.\n\n### 2. \\`GET /idp/login\\` — standalone login\n\nUsername + password form, no \\`client_id\\` required. On submit: set the IDP session cookie (same mechanism the OIDC interaction flow already uses to remember an authenticated account) and redirect to a configurable \\`?next=\\` URL, defaulting to \\`/idp\\` (or to the user's pod root \\`/alice/\\`, TBD).\n\nPlumbing-wise, this is most of \\`handleLogin\\` minus the interaction-finished step: authenticate via \\`accounts.authenticate\\`, write the session, redirect.\n\n### 3. \\`/idp/auth\\` without \\`client_id\\` → friendly redirect\n\nCurrent behaviour returns the OIDC error verbatim. Instead, detect the no-client-id case in the route wrapper and 302 to \\`/idp\\` (the new landing) with a \\`message=needs_client\\` query param so the landing page can optionally show context. Preserves the OIDC contract for clients sending a real auth request — only changes the human-fat-fingered case.\n\n### Connections to other open work\n\n- Closes the \\\"Sign In\\\" affordance gap on the register page (#284) — the link can point at \\`/idp/login\\` instead of being hidden.\n- Pairs naturally with the auto-login follow-up I deferred from #285 (PR #285 description): once \\`/idp/login\\` exists, \\\"register → auto-login → land on \\`/idp\\`\\\" is a one-call composition.\n\n## Non-goals\n\n- Account management UI (change password, delete pod, view active sessions). Separate issue.\n- A full pod browser. \\`/idp\\`'s buttons just navigate; the pod browser is mashlib's territory.\n- Federated / WebID-OIDC sign-in. The standalone \\`/idp/login\\` is local-account first.\n\n## Scope estimate\n\nSmallest viable cut: ~80 lines of view + ~40 lines of route handler + the \\`/idp/auth\\` redirect guard + tests. One PR, no OIDC-protocol changes (just additive routes that reuse existing session machinery).\n\nHappy to PR.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-04-22T01:53:57Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/286"}
| 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:77410a30-b505-3bc2-fe86-7d5f3b0b97cd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B794:1E1219:1908D7:21A07E:6B03C41A |
| html-safe-nonce | 9fb319634b7fb9d36dc17d24f38e8a5ab6ecf38e3de7e99a7751fac841b9aad8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzk0OjFFMTIxOToxOTA4RDc6MjFBMDdFOjZCMDNDNDFBIiwidmlzaXRvcl9pZCI6IjcwMTY5NzUxMTg4MTk5MDI0OTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fc7eaf171feca0940113a57fa5fa168f9d685bdd00ee2e0396595b7c658d0766 |
| hovercard-subject-tag | issue:4306253699 |
| 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/286/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0ac9552fb2ab17e4c2caa1d8ae12ae96fb775e819722fcb9b110d25163ea0187/JavaScriptSolidServer/JavaScriptSolidServer/issues/286 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0ac9552fb2ab17e4c2caa1d8ae12ae96fb775e819722fcb9b110d25163ea0187/JavaScriptSolidServer/JavaScriptSolidServer/issues/286 |
| og:image:alt | Problem The IDP currently has no human-friendly entry point. Every URL assumes you're already in an OIDC flow: `/idp/auth` without `client_id` → `Authentication Error: invalid_request, missing requ... |
| 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