Commit ec27890
committed
feat: enable IDP, seed me/me, localhost-only by default (#1 phase 2)
The welcome page is HEAD-adaptive: it reveals "Sign in" or "Sign up"
based on what the IDP advertises. With the IDP off (jspod's previous
default), neither button rendered and the only visible CTA was a
docs link going off-site. Turning the IDP on with single-user
seeding flips that page from "read the docs" to "sign in here."
- Flip default `--host` to 127.0.0.1 (was 0.0.0.0). Personal pods
almost always want localhost; making this the default also lets
us safely seed deliberately-weak rung-1 credentials.
- Replace `--no-multiuser`-only single-user behaviour with full
single-user mode: `--no-multiuser --single-user --idp
--single-user-password me`. JSS hardcodes the username on root
pods to 'me' (server.js:970), so credentials end up `me` / `me`
— symmetric, memorable, clearly a placeholder.
- Banner adds a "Sign In (rung 1 of the auth ladder)" section
showing username, password, and the climb hint. References the
ladder framing from issue #6.
- Loud red warning if user passes `--host 0.0.0.0` (or any
non-loopback host) telling them the well-known credentials are
now reachable beyond localhost.
- README: First Run Guide rewritten around the ladder. Rungs 0-4
table, climb instructions, and JSS_SINGLE_USER_PASSWORD escape
hatch for users who want a custom rung-1 password.
- Multi-user mode (`--multiuser`) still works: passes `--idp` so
the IDP is available for registration, but no `--single-user-*`
flags so registration stays open.
- Help text: --host default updated to 127.0.0.1.
- Bump jspod to 0.0.10.
This addresses issue #1 phase 2, executed through the lens of
issue #3 (single-user positioning) and issue #6 (auth ladder).
Refs #1 #3 #61 parent daec447 commit ec27890
3 files changed
Lines changed: 75 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
219 | 248 | | |
220 | 249 | | |
221 | 250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
41 | 48 | | |
42 | 49 | | |
43 | 50 | | |
| |||
66 | 73 | | |
67 | 74 | | |
68 | 75 | | |
69 | | - | |
| 76 | + | |
70 | 77 | | |
71 | 78 | | |
72 | 79 | | |
| |||
125 | 132 | | |
126 | 133 | | |
127 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
128 | 157 | | |
129 | 158 | | |
130 | 159 | | |
| |||
150 | 179 | | |
151 | 180 | | |
152 | 181 | | |
153 | | - | |
154 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
155 | 194 | | |
156 | 195 | | |
157 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments